projects
/
linux
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
699f675
)
x86/irq: Unionize PID.PIR for 64bit access w/o casting
author
Jacob Pan
<jacob.jun.pan@linux.intel.com>
Tue, 23 Apr 2024 17:41:04 +0000
(10:41 -0700)
committer
Thomas Gleixner
<tglx@linutronix.de>
Mon, 29 Apr 2024 22:54:42 +0000
(
00:54
+0200)
Make the PIR field into u64 such that atomic xchg64 can be used without
ugly casting.
Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link:
https://lore.kernel.org/r/20240423174114.526704-3-jacob.jun.pan@linux.intel.com
arch/x86/include/asm/posted_intr.h
patch
|
blob
|
history
diff --git
a/arch/x86/include/asm/posted_intr.h
b/arch/x86/include/asm/posted_intr.h
index f0324c56f7af517e8e844b9af3a4939f5e3d9448..acf237b2882ebaffa9c9ea032faf1e8bbd9700ba 100644
(file)
--- a/
arch/x86/include/asm/posted_intr.h
+++ b/
arch/x86/include/asm/posted_intr.h
@@
-9,7
+9,10
@@
/* Posted-Interrupt Descriptor */
struct pi_desc {
- u32 pir[8]; /* Posted interrupt requested */
+ union {
+ u32 pir[8]; /* Posted interrupt requested */
+ u64 pir64[4];
+ };
union {
struct {
/* bit 256 - Outstanding Notification */