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 <[email protected]> Signed-off-by: Jacob Pan <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 699f675 commit 4ec8fd0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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)