x86, apic: remove DEFAULT_IRQ_DELIVERY_MODE and DEFAULT_IRQ_DEST_MODE
authorIngo Molnar <mingo@elte.hu>
Wed, 28 Jan 2009 03:16:01 +0000 (04:16 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 28 Jan 2009 22:20:14 +0000 (23:20 +0100)
Impact: cleanup

They were only used in a single place and obscured the apic_default template.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/mach-default/mach_apic.h
arch/x86/mach-generic/default.c

index eafbf4f20387f2ed78ae270e5392541f1aaf06e3..f3b2cd423882b107b07e7e0db7802f1438147b1d 100644 (file)
@@ -34,8 +34,6 @@ static inline const struct cpumask *target_cpus(void)
 #define wakeup_secondary_cpu (apic->wakeup_cpu)
 extern void setup_apic_routing(void);
 #else
-#define DEFAULT_IRQ_DELIVERY_MODE dest_LowestPrio
-#define DEFAULT_IRQ_DEST_MODE 1     /* logical delivery broadcast to all procs */
 #define TARGET_CPUS (target_cpus())
 #define wakeup_secondary_cpu wakeup_secondary_cpu_via_init
 /*
index 0482106f0e19cc13923b8289746bd7bffe46b710..fe97b0114a0614358c52b6c4219a5aff468ef86e 100644 (file)
@@ -31,8 +31,9 @@ struct genapic apic_default = {
        .acpi_madt_oem_check            = NULL,
        .apic_id_registered             = default_apic_id_registered,
 
-       .irq_delivery_mode              = DEFAULT_IRQ_DELIVERY_MODE,
-       .irq_dest_mode                  = DEFAULT_IRQ_DEST_MODE,
+       .irq_delivery_mode              = dest_LowestPrio,
+       /* logical delivery broadcast to all CPUs: */
+       .irq_dest_mode                  = 1,
 
        .target_cpus                    = target_cpus,
        .ESR_DISABLE                    = esr_disable,