Skip to content

Commit 4ec8fd0

Browse files
Jacob PanKAGA-KOKO
authored andcommitted
x86/irq: Unionize PID.PIR for 64bit access w/o casting
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
1 parent 699f675 commit 4ec8fd0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

arch/x86/include/asm/posted_intr.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99

1010
/* Posted-Interrupt Descriptor */
1111
struct pi_desc {
12-
u32 pir[8]; /* Posted interrupt requested */
12+
union {
13+
u32 pir[8]; /* Posted interrupt requested */
14+
u64 pir64[4];
15+
};
1316
union {
1417
struct {
1518
/* bit 256 - Outstanding Notification */

0 commit comments

Comments
 (0)