mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 04:56:13 +02:00
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
This commit is contained in:
parent
699f67512f
commit
4ec8fd0371
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user