hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/arch/x86/kernel/apic/io_apic.c
....@@ -1732,7 +1732,7 @@
17321732 return false;
17331733 }
17341734
1735
-static inline bool ioapic_irqd_mask(struct irq_data *data)
1735
+static inline bool ioapic_prepare_move(struct irq_data *data)
17361736 {
17371737 /* If we are moving the IRQ we need to mask it */
17381738 if (unlikely(irqd_is_setaffinity_pending(data))) {
....@@ -1743,9 +1743,9 @@
17431743 return false;
17441744 }
17451745
1746
-static inline void ioapic_irqd_unmask(struct irq_data *data, bool masked)
1746
+static inline void ioapic_finish_move(struct irq_data *data, bool moveit)
17471747 {
1748
- if (unlikely(masked)) {
1748
+ if (unlikely(moveit)) {
17491749 /* Only migrate the irq if the ack has been received.
17501750 *
17511751 * On rare occasions the broadcast level triggered ack gets
....@@ -1780,11 +1780,11 @@
17801780 }
17811781 }
17821782 #else
1783
-static inline bool ioapic_irqd_mask(struct irq_data *data)
1783
+static inline bool ioapic_prepare_move(struct irq_data *data)
17841784 {
17851785 return false;
17861786 }
1787
-static inline void ioapic_irqd_unmask(struct irq_data *data, bool masked)
1787
+static inline void ioapic_finish_move(struct irq_data *data, bool moveit)
17881788 {
17891789 }
17901790 #endif
....@@ -1793,11 +1793,11 @@
17931793 {
17941794 struct irq_cfg *cfg = irqd_cfg(irq_data);
17951795 unsigned long v;
1796
- bool masked;
1796
+ bool moveit;
17971797 int i;
17981798
17991799 irq_complete_move(cfg);
1800
- masked = ioapic_irqd_mask(irq_data);
1800
+ moveit = ioapic_prepare_move(irq_data);
18011801
18021802 /*
18031803 * It appears there is an erratum which affects at least version 0x11
....@@ -1852,7 +1852,7 @@
18521852 eoi_ioapic_pin(cfg->vector, irq_data->chip_data);
18531853 }
18541854
1855
- ioapic_irqd_unmask(irq_data, masked);
1855
+ ioapic_finish_move(irq_data, moveit);
18561856 }
18571857
18581858 static void ioapic_ir_ack_level(struct irq_data *irq_data)