aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mach-generic
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-28 00:50:47 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-28 17:20:20 -0500
commite2d40b1878bd13ca1028ddd299c48e4821ac3535 (patch)
tree6b2a69b3323346137e7146537edd1118dcce7862 /arch/x86/mach-generic
parent2e867b17cc02e1799f18126af0ddd7b63dd8f6f4 (diff)
x86, apic: clean up ->vector_allocation_domain()
- separate the namespace - remove macros - move the default vector-allocation-domain to mach-generic - fix whitespace damage 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.c16
-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, 23 insertions, 9 deletions
diff --git a/arch/x86/mach-generic/bigsmp.c b/arch/x86/mach-generic/bigsmp.c
index 6da251aa9f4e..391cc99cd21c 100644
--- a/arch/x86/mach-generic/bigsmp.c
+++ b/arch/x86/mach-generic/bigsmp.c
@@ -42,7 +42,7 @@ static const struct dmi_system_id bigsmp_dmi_table[] = {
42 { } 42 { }
43}; 43};
44 44
45static void vector_allocation_domain(int cpu, cpumask_t *retmask) 45static void bigsmp_vector_allocation_domain(int cpu, cpumask_t *retmask)
46{ 46{
47 cpus_clear(*retmask); 47 cpus_clear(*retmask);
48 cpu_set(cpu, *retmask); 48 cpu_set(cpu, *retmask);
@@ -74,7 +74,7 @@ struct genapic apic_bigsmp = {
74 .check_apicid_used = bigsmp_check_apicid_used, 74 .check_apicid_used = bigsmp_check_apicid_used,
75 .check_apicid_present = bigsmp_check_apicid_present, 75 .check_apicid_present = bigsmp_check_apicid_present,
76 76
77 .vector_allocation_domain = vector_allocation_domain, 77 .vector_allocation_domain = bigsmp_vector_allocation_domain,
78 .init_apic_ldr = init_apic_ldr, 78 .init_apic_ldr = init_apic_ldr,
79 79
80 .ioapic_phys_id_map = ioapic_phys_id_map, 80 .ioapic_phys_id_map = ioapic_phys_id_map,
diff --git a/arch/x86/mach-generic/default.c b/arch/x86/mach-generic/default.c
index e89e8c9dd68d..6adc3c69a3c9 100644
--- a/arch/x86/mach-generic/default.c
+++ b/arch/x86/mach-generic/default.c
@@ -18,6 +18,20 @@
18#include <asm/mach-default/mach_mpparse.h> 18#include <asm/mach-default/mach_mpparse.h>
19#include <asm/mach-default/mach_wakecpu.h> 19#include <asm/mach-default/mach_wakecpu.h>
20 20
21static void default_vector_allocation_domain(int cpu, struct cpumask *retmask)
22{
23 /*
24 * Careful. Some cpus do not strictly honor the set of cpus
25 * specified in the interrupt destination when using lowest
26 * priority interrupt delivery mode.
27 *
28 * In particular there was a hyperthreading cpu observed to
29 * deliver interrupts to the wrong hyperthread when only one
30 * hyperthread was specified in the interrupt desitination.
31 */
32 *retmask = (cpumask_t) { { [0] = APIC_ALL_CPUS } };
33}
34
21/* should be called last. */ 35/* should be called last. */
22static int probe_default(void) 36static int probe_default(void)
23{ 37{
@@ -41,7 +55,7 @@ struct genapic apic_default = {
41 .check_apicid_used = default_check_apicid_used, 55 .check_apicid_used = default_check_apicid_used,
42 .check_apicid_present = default_check_apicid_present, 56 .check_apicid_present = default_check_apicid_present,
43 57
44 .vector_allocation_domain = vector_allocation_domain, 58 .vector_allocation_domain = default_vector_allocation_domain,
45 .init_apic_ldr = init_apic_ldr, 59 .init_apic_ldr = init_apic_ldr,
46 60
47 .ioapic_phys_id_map = ioapic_phys_id_map, 61 .ioapic_phys_id_map = ioapic_phys_id_map,
diff --git a/arch/x86/mach-generic/es7000.c b/arch/x86/mach-generic/es7000.c
index 8e9eeecf7e24..bc1f21cd6a4d 100644
--- a/arch/x86/mach-generic/es7000.c
+++ b/arch/x86/mach-generic/es7000.c
@@ -86,7 +86,7 @@ static int __init es7000_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
86} 86}
87#endif 87#endif
88 88
89static void vector_allocation_domain(int cpu, cpumask_t *retmask) 89static void es7000_vector_allocation_domain(int cpu, cpumask_t *retmask)
90{ 90{
91 /* Careful. Some cpus do not strictly honor the set of cpus 91 /* Careful. Some cpus do not strictly honor the set of cpus
92 * specified in the interrupt destination when using lowest 92 * specified in the interrupt destination when using lowest
@@ -116,7 +116,7 @@ struct genapic apic_es7000 = {
116 .check_apicid_used = es7000_check_apicid_used, 116 .check_apicid_used = es7000_check_apicid_used,
117 .check_apicid_present = es7000_check_apicid_present, 117 .check_apicid_present = es7000_check_apicid_present,
118 118
119 .vector_allocation_domain = vector_allocation_domain, 119 .vector_allocation_domain = es7000_vector_allocation_domain,
120 .init_apic_ldr = init_apic_ldr, 120 .init_apic_ldr = init_apic_ldr,
121 121
122 .ioapic_phys_id_map = ioapic_phys_id_map, 122 .ioapic_phys_id_map = ioapic_phys_id_map,
diff --git a/arch/x86/mach-generic/numaq.c b/arch/x86/mach-generic/numaq.c
index f909189fee3e..712882f48c4e 100644
--- a/arch/x86/mach-generic/numaq.c
+++ b/arch/x86/mach-generic/numaq.c
@@ -31,7 +31,7 @@ static int probe_numaq(void)
31 return found_numaq; 31 return found_numaq;
32} 32}
33 33
34static void vector_allocation_domain(int cpu, cpumask_t *retmask) 34static void numaq_vector_allocation_domain(int cpu, cpumask_t *retmask)
35{ 35{
36 /* Careful. Some cpus do not strictly honor the set of cpus 36 /* Careful. Some cpus do not strictly honor the set of cpus
37 * specified in the interrupt destination when using lowest 37 * specified in the interrupt destination when using lowest
@@ -61,7 +61,7 @@ struct genapic apic_numaq = {
61 .check_apicid_used = numaq_check_apicid_used, 61 .check_apicid_used = numaq_check_apicid_used,
62 .check_apicid_present = numaq_check_apicid_present, 62 .check_apicid_present = numaq_check_apicid_present,
63 63
64 .vector_allocation_domain = vector_allocation_domain, 64 .vector_allocation_domain = numaq_vector_allocation_domain,
65 .init_apic_ldr = init_apic_ldr, 65 .init_apic_ldr = init_apic_ldr,
66 66
67 .ioapic_phys_id_map = ioapic_phys_id_map, 67 .ioapic_phys_id_map = ioapic_phys_id_map,
diff --git a/arch/x86/mach-generic/summit.c b/arch/x86/mach-generic/summit.c
index 99a9bea8d141..1834887b94a3 100644
--- a/arch/x86/mach-generic/summit.c
+++ b/arch/x86/mach-generic/summit.c
@@ -24,7 +24,7 @@ static int probe_summit(void)
24 return 0; 24 return 0;
25} 25}
26 26
27static void vector_allocation_domain(int cpu, cpumask_t *retmask) 27static void summit_vector_allocation_domain(int cpu, cpumask_t *retmask)
28{ 28{
29 /* Careful. Some cpus do not strictly honor the set of cpus 29 /* Careful. Some cpus do not strictly honor the set of cpus
30 * specified in the interrupt destination when using lowest 30 * specified in the interrupt destination when using lowest
@@ -54,7 +54,7 @@ struct genapic apic_summit = {
54 .check_apicid_used = summit_check_apicid_used, 54 .check_apicid_used = summit_check_apicid_used,
55 .check_apicid_present = summit_check_apicid_present, 55 .check_apicid_present = summit_check_apicid_present,
56 56
57 .vector_allocation_domain = vector_allocation_domain, 57 .vector_allocation_domain = summit_vector_allocation_domain,
58 .init_apic_ldr = init_apic_ldr, 58 .init_apic_ldr = init_apic_ldr,
59 59
60 .ioapic_phys_id_map = ioapic_phys_id_map, 60 .ioapic_phys_id_map = ioapic_phys_id_map,