Skip to content

Commit 855da7c

Browse files
andyhhpbp3tk0v
authored andcommitted
x86/apic: Drop enum apic_delivery_modes
The type is not used any more. Replace the constants with plain defines so they can live outside of an __ASSEMBLY__ block, allowing for more cleanup in subsequent changes. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Steve Wahl <steve.wahl@hpe.com> Link: https://lore.kernel.org/r/20231102-x86-apic-v1-2-bf049a2a0ed6@citrix.com
1 parent 07e8f88 commit 855da7c

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

arch/x86/include/asm/apicdef.h

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
*/
2121
#define IO_APIC_SLOT_SIZE 1024
2222

23+
#define APIC_DELIVERY_MODE_FIXED 0
24+
#define APIC_DELIVERY_MODE_LOWESTPRIO 1
25+
#define APIC_DELIVERY_MODE_SMI 2
26+
#define APIC_DELIVERY_MODE_NMI 4
27+
#define APIC_DELIVERY_MODE_INIT 5
28+
#define APIC_DELIVERY_MODE_EXTINT 7
29+
2330
#define APIC_ID 0x20
2431

2532
#define APIC_LVR 0x30
@@ -430,14 +437,5 @@ struct local_apic {
430437
#define BAD_APICID 0xFFFFu
431438
#endif
432439

433-
enum apic_delivery_modes {
434-
APIC_DELIVERY_MODE_FIXED = 0,
435-
APIC_DELIVERY_MODE_LOWESTPRIO = 1,
436-
APIC_DELIVERY_MODE_SMI = 2,
437-
APIC_DELIVERY_MODE_NMI = 4,
438-
APIC_DELIVERY_MODE_INIT = 5,
439-
APIC_DELIVERY_MODE_EXTINT = 7,
440-
};
441-
442440
#endif /* !__ASSEMBLY__ */
443441
#endif /* _ASM_X86_APICDEF_H */

0 commit comments

Comments
 (0)