Skip to contentSkip to conversation

x86/IRQ: use LOCK-free bit setting in init_irq_data()

PATCH In review Jan Beulich 2 participants 2 messages Nov 12, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/IRQ: use LOCK-free bit setting in init_irq_data()

Much like done later in the function, syscall and hypercall vectors can have their bits set without use of LOCKed accesses.

xen/arch/x86/irq.c +2 -2
@@ -450,12 +450,12 @@ int __init init_irq_data(void)
 
 #ifdef CONFIG_PV
     /* Never allocate the Linux/BSD fast-trap vector. */
-    set_bit(LEGACY_SYSCALL_VECTOR, used_vectors);
+    __set_bit(LEGACY_SYSCALL_VECTOR, used_vectors);
 #endif
 
 #ifdef CONFIG_PV32
     /* Never allocate the hypercall vector. */
-    set_bit(HYPERCALL_VECTOR, used_vectors);
+    __set_bit(HYPERCALL_VECTOR, used_vectors);
 #endif
     
     /*