aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mach-generic
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-27 22:09:58 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-28 17:20:13 -0500
commit9b5bc8dc12421a4b17047061f473d85c1797d543 (patch)
tree69799378fb9e55dd8c23ceb39c646d7bf47523f8 /arch/x86/mach-generic
parentf8987a1093cc7a896137e264c24e04d4048e9f95 (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/mach-generic')
-rw-r--r--arch/x86/mach-generic/bigsmp.c4
-rw-r--r--arch/x86/mach-generic/default.c4
-rw-r--r--arch/x86/mach-generic/es7000.c4
-rw-r--r--arch/x86/mach-generic/numaq.c4
-rw-r--r--arch/x86/mach-generic/summit.c4
5 files changed, 10 insertions, 10 deletions
diff --git a/arch/x86/mach-generic/bigsmp.c b/arch/x86/mach-generic/bigsmp.c
index c15c1aa2dc7f..e8c1ceca7c94 100644
--- a/arch/x86/mach-generic/bigsmp.c
+++ b/arch/x86/mach-generic/bigsmp.c
@@ -64,8 +64,8 @@ struct genapic apic_bigsmp = {
64 .acpi_madt_oem_check = NULL, 64 .acpi_madt_oem_check = NULL,
65 .apic_id_registered = bigsmp_apic_id_registered, 65 .apic_id_registered = bigsmp_apic_id_registered,
66 66
67 .irq_delivery_mode = IRQ_DELIVERY_MODE, 67 .irq_delivery_mode = BIGSMP_IRQ_DELIVERY_MODE,
68 .irq_dest_mode = IRQ_DEST_MODE, 68 .irq_dest_mode = BIGSMP_IRQ_DEST_MODE,
69 69
70 .target_cpus = target_cpus, 70 .target_cpus = target_cpus,
71 .ESR_DISABLE = esr_disable, 71 .ESR_DISABLE = esr_disable,
diff --git a/arch/x86/mach-generic/default.c b/arch/x86/mach-generic/default.c
index d32b175eff88..0482106f0e19 100644
--- a/arch/x86/mach-generic/default.c
+++ b/arch/x86/mach-generic/default.c
@@ -31,8 +31,8 @@ struct genapic apic_default = {
31 .acpi_madt_oem_check = NULL, 31 .acpi_madt_oem_check = NULL,
32 .apic_id_registered = default_apic_id_registered, 32 .apic_id_registered = default_apic_id_registered,
33 33
34 .irq_delivery_mode = IRQ_DELIVERY_MODE, 34 .irq_delivery_mode = DEFAULT_IRQ_DELIVERY_MODE,
35 .irq_dest_mode = IRQ_DEST_MODE, 35 .irq_dest_mode = DEFAULT_IRQ_DEST_MODE,
36 36
37 .target_cpus = target_cpus, 37 .target_cpus = target_cpus,
38 .ESR_DISABLE = esr_disable, 38 .ESR_DISABLE = esr_disable,
diff --git a/arch/x86/mach-generic/es7000.c b/arch/x86/mach-generic/es7000.c
index 06653892953e..5d97408919bb 100644
--- a/arch/x86/mach-generic/es7000.c
+++ b/arch/x86/mach-generic/es7000.c
@@ -107,8 +107,8 @@ struct genapic apic_es7000 = {
107 .acpi_madt_oem_check = es7000_acpi_madt_oem_check, 107 .acpi_madt_oem_check = es7000_acpi_madt_oem_check,
108 .apic_id_registered = es7000_apic_id_registered, 108 .apic_id_registered = es7000_apic_id_registered,
109 109
110 .irq_delivery_mode = IRQ_DELIVERY_MODE, 110 .irq_delivery_mode = ES7000_IRQ_DELIVERY_MODE,
111 .irq_dest_mode = IRQ_DEST_MODE, 111 .irq_dest_mode = ES7000_IRQ_DEST_MODE,
112 112
113 .target_cpus = target_cpus, 113 .target_cpus = target_cpus,
114 .ESR_DISABLE = esr_disable, 114 .ESR_DISABLE = esr_disable,
diff --git a/arch/x86/mach-generic/numaq.c b/arch/x86/mach-generic/numaq.c
index 401957142fda..77ac66935fdd 100644
--- a/arch/x86/mach-generic/numaq.c
+++ b/arch/x86/mach-generic/numaq.c
@@ -51,8 +51,8 @@ struct genapic apic_numaq = {
51 .acpi_madt_oem_check = NULL, 51 .acpi_madt_oem_check = NULL,
52 .apic_id_registered = numaq_apic_id_registered, 52 .apic_id_registered = numaq_apic_id_registered,
53 53
54 .irq_delivery_mode = IRQ_DELIVERY_MODE, 54 .irq_delivery_mode = NUMAQ_IRQ_DELIVERY_MODE,
55 .irq_dest_mode = IRQ_DEST_MODE, 55 .irq_dest_mode = NUMAQ_IRQ_DEST_MODE,
56 56
57 .target_cpus = target_cpus, 57 .target_cpus = target_cpus,
58 .ESR_DISABLE = esr_disable, 58 .ESR_DISABLE = esr_disable,
diff --git a/arch/x86/mach-generic/summit.c b/arch/x86/mach-generic/summit.c
index 946da7aa7622..7b3f43caf2ae 100644
--- a/arch/x86/mach-generic/summit.c
+++ b/arch/x86/mach-generic/summit.c
@@ -44,8 +44,8 @@ struct genapic apic_summit = {
44 .acpi_madt_oem_check = summit_acpi_madt_oem_check, 44 .acpi_madt_oem_check = summit_acpi_madt_oem_check,
45 .apic_id_registered = summit_apic_id_registered, 45 .apic_id_registered = summit_apic_id_registered,
46 46
47 .irq_delivery_mode = IRQ_DELIVERY_MODE, 47 .irq_delivery_mode = SUMMIT_IRQ_DELIVERY_MODE,
48 .irq_dest_mode = IRQ_DEST_MODE, 48 .irq_dest_mode = SUMMIT_IRQ_DEST_MODE,
49 49
50 .target_cpus = target_cpus, 50 .target_cpus = target_cpus,
51 .ESR_DISABLE = esr_disable, 51 .ESR_DISABLE = esr_disable,