diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-27 22:09:58 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-28 17:20:13 -0500 |
commit | 9b5bc8dc12421a4b17047061f473d85c1797d543 (patch) | |
tree | 69799378fb9e55dd8c23ceb39c646d7bf47523f8 /arch/x86/include/asm/mach-default | |
parent | f8987a1093cc7a896137e264c24e04d4048e9f95 (diff) |
x86, apic: remove IRQ_DEST_MODE / IRQ_DELIVERY_MODE
Remove the wrapper macros IRQ_DEST_MODE and IRQ_DELIVERY_MODE.
The typical 32-bit and the 64-bit build all dereference via the genapic,
so it's pointless to hide that indirection via these ugly macros.
Furthermore, it also obscures subarchitecture details.
So replace it with apic->irq_dest_mode / etc. accesses.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/mach-default')
-rw-r--r-- | arch/x86/include/asm/mach-default/mach_apic.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/include/asm/mach-default/mach_apic.h b/arch/x86/include/asm/mach-default/mach_apic.h index b5364793262a..eafbf4f20387 100644 --- a/arch/x86/include/asm/mach-default/mach_apic.h +++ b/arch/x86/include/asm/mach-default/mach_apic.h | |||
@@ -22,7 +22,6 @@ static inline const struct cpumask *target_cpus(void) | |||
22 | 22 | ||
23 | #ifdef CONFIG_X86_64 | 23 | #ifdef CONFIG_X86_64 |
24 | #include <asm/genapic.h> | 24 | #include <asm/genapic.h> |
25 | #define IRQ_DELIVERY_MODE (apic->irq_delivery_mode) | ||
26 | #define IRQ_DEST_MODE (apic->irq_dest_mode) | 25 | #define IRQ_DEST_MODE (apic->irq_dest_mode) |
27 | #define TARGET_CPUS (apic->target_cpus()) | 26 | #define TARGET_CPUS (apic->target_cpus()) |
28 | #define init_apic_ldr (apic->init_apic_ldr) | 27 | #define init_apic_ldr (apic->init_apic_ldr) |
@@ -35,8 +34,8 @@ static inline const struct cpumask *target_cpus(void) | |||
35 | #define wakeup_secondary_cpu (apic->wakeup_cpu) | 34 | #define wakeup_secondary_cpu (apic->wakeup_cpu) |
36 | extern void setup_apic_routing(void); | 35 | extern void setup_apic_routing(void); |
37 | #else | 36 | #else |
38 | #define IRQ_DELIVERY_MODE dest_LowestPrio | 37 | #define DEFAULT_IRQ_DELIVERY_MODE dest_LowestPrio |
39 | #define IRQ_DEST_MODE 1 /* logical delivery broadcast to all procs */ | 38 | #define DEFAULT_IRQ_DEST_MODE 1 /* logical delivery broadcast to all procs */ |
40 | #define TARGET_CPUS (target_cpus()) | 39 | #define TARGET_CPUS (target_cpus()) |
41 | #define wakeup_secondary_cpu wakeup_secondary_cpu_via_init | 40 | #define wakeup_secondary_cpu wakeup_secondary_cpu_via_init |
42 | /* | 41 | /* |