diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-28 00:50:47 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-28 17:20:21 -0500 |
commit | a5c4329622a3437adef4b2a4288d127957743c97 (patch) | |
tree | 9eca2d48aba0da0265976b98e3e4122a3d93bc86 | |
parent | e2d40b1878bd13ca1028ddd299c48e4821ac3535 (diff) |
x86, apic: clean up ->init_apic_ldr()
- separate the namespace
- remove macros
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/include/asm/bigsmp/apic.h | 2 | ||||
-rw-r--r-- | arch/x86/include/asm/es7000/apic.h | 4 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-default/mach_apic.h | 3 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-generic/mach_apic.h | 1 | ||||
-rw-r--r-- | arch/x86/include/asm/numaq/apic.h | 2 | ||||
-rw-r--r-- | arch/x86/include/asm/summit/apic.h | 2 | ||||
-rw-r--r-- | arch/x86/kernel/apic.c | 2 | ||||
-rw-r--r-- | arch/x86/mach-generic/bigsmp.c | 2 | ||||
-rw-r--r-- | arch/x86/mach-generic/default.c | 2 | ||||
-rw-r--r-- | arch/x86/mach-generic/es7000.c | 4 | ||||
-rw-r--r-- | arch/x86/mach-generic/numaq.c | 2 | ||||
-rw-r--r-- | arch/x86/mach-generic/summit.c | 2 |
12 files changed, 13 insertions, 15 deletions
diff --git a/arch/x86/include/asm/bigsmp/apic.h b/arch/x86/include/asm/bigsmp/apic.h index 916451252b3a..819413082999 100644 --- a/arch/x86/include/asm/bigsmp/apic.h +++ b/arch/x86/include/asm/bigsmp/apic.h | |||
@@ -46,7 +46,7 @@ static inline unsigned long calculate_ldr(int cpu) | |||
46 | * an APIC. See e.g. "AP-388 82489DX User's Manual" (Intel | 46 | * an APIC. See e.g. "AP-388 82489DX User's Manual" (Intel |
47 | * document number 292116). So here it goes... | 47 | * document number 292116). So here it goes... |
48 | */ | 48 | */ |
49 | static inline void init_apic_ldr(void) | 49 | static inline void bigsmp_init_apic_ldr(void) |
50 | { | 50 | { |
51 | unsigned long val; | 51 | unsigned long val; |
52 | int cpu = smp_processor_id(); | 52 | int cpu = smp_processor_id(); |
diff --git a/arch/x86/include/asm/es7000/apic.h b/arch/x86/include/asm/es7000/apic.h index 847008a77029..06f5757bf7af 100644 --- a/arch/x86/include/asm/es7000/apic.h +++ b/arch/x86/include/asm/es7000/apic.h | |||
@@ -52,7 +52,7 @@ static inline unsigned long calculate_ldr(int cpu) | |||
52 | * an APIC. See e.g. "AP-388 82489DX User's Manual" (Intel | 52 | * an APIC. See e.g. "AP-388 82489DX User's Manual" (Intel |
53 | * document number 292116). So here it goes... | 53 | * document number 292116). So here it goes... |
54 | */ | 54 | */ |
55 | static inline void init_apic_ldr_cluster(void) | 55 | static inline void es7000_init_apic_ldr_cluster(void) |
56 | { | 56 | { |
57 | unsigned long val; | 57 | unsigned long val; |
58 | int cpu = smp_processor_id(); | 58 | int cpu = smp_processor_id(); |
@@ -62,7 +62,7 @@ static inline void init_apic_ldr_cluster(void) | |||
62 | apic_write(APIC_LDR, val); | 62 | apic_write(APIC_LDR, val); |
63 | } | 63 | } |
64 | 64 | ||
65 | static inline void init_apic_ldr(void) | 65 | static inline void es7000_init_apic_ldr(void) |
66 | { | 66 | { |
67 | unsigned long val; | 67 | unsigned long val; |
68 | int cpu = smp_processor_id(); | 68 | int cpu = smp_processor_id(); |
diff --git a/arch/x86/include/asm/mach-default/mach_apic.h b/arch/x86/include/asm/mach-default/mach_apic.h index 9c56542644ca..23e0a2da3a96 100644 --- a/arch/x86/include/asm/mach-default/mach_apic.h +++ b/arch/x86/include/asm/mach-default/mach_apic.h | |||
@@ -19,7 +19,6 @@ static inline const struct cpumask *default_target_cpus(void) | |||
19 | 19 | ||
20 | #ifdef CONFIG_X86_64 | 20 | #ifdef CONFIG_X86_64 |
21 | #include <asm/genapic.h> | 21 | #include <asm/genapic.h> |
22 | #define init_apic_ldr (apic->init_apic_ldr) | ||
23 | #define cpu_mask_to_apicid (apic->cpu_mask_to_apicid) | 22 | #define cpu_mask_to_apicid (apic->cpu_mask_to_apicid) |
24 | #define cpu_mask_to_apicid_and (apic->cpu_mask_to_apicid_and) | 23 | #define cpu_mask_to_apicid_and (apic->cpu_mask_to_apicid_and) |
25 | #define phys_pkg_id (apic->phys_pkg_id) | 24 | #define phys_pkg_id (apic->phys_pkg_id) |
@@ -36,7 +35,7 @@ extern void setup_apic_routing(void); | |||
36 | * an APIC. See e.g. "AP-388 82489DX User's Manual" (Intel | 35 | * an APIC. See e.g. "AP-388 82489DX User's Manual" (Intel |
37 | * document number 292116). So here it goes... | 36 | * document number 292116). So here it goes... |
38 | */ | 37 | */ |
39 | static inline void init_apic_ldr(void) | 38 | static inline void default_init_apic_ldr(void) |
40 | { | 39 | { |
41 | unsigned long val; | 40 | unsigned long val; |
42 | 41 | ||
diff --git a/arch/x86/include/asm/mach-generic/mach_apic.h b/arch/x86/include/asm/mach-generic/mach_apic.h index e94881af9625..8e51f4163944 100644 --- a/arch/x86/include/asm/mach-generic/mach_apic.h +++ b/arch/x86/include/asm/mach-generic/mach_apic.h | |||
@@ -3,7 +3,6 @@ | |||
3 | 3 | ||
4 | #include <asm/genapic.h> | 4 | #include <asm/genapic.h> |
5 | 5 | ||
6 | #define init_apic_ldr (apic->init_apic_ldr) | ||
7 | #define ioapic_phys_id_map (apic->ioapic_phys_id_map) | 6 | #define ioapic_phys_id_map (apic->ioapic_phys_id_map) |
8 | #define setup_apic_routing (apic->setup_apic_routing) | 7 | #define setup_apic_routing (apic->setup_apic_routing) |
9 | #define multi_timer_check (apic->multi_timer_check) | 8 | #define multi_timer_check (apic->multi_timer_check) |
diff --git a/arch/x86/include/asm/numaq/apic.h b/arch/x86/include/asm/numaq/apic.h index defee3496ad6..802297489a34 100644 --- a/arch/x86/include/asm/numaq/apic.h +++ b/arch/x86/include/asm/numaq/apic.h | |||
@@ -28,7 +28,7 @@ static inline int numaq_apic_id_registered(void) | |||
28 | return 1; | 28 | return 1; |
29 | } | 29 | } |
30 | 30 | ||
31 | static inline void init_apic_ldr(void) | 31 | static inline void numaq_init_apic_ldr(void) |
32 | { | 32 | { |
33 | /* Already done in NUMA-Q firmware */ | 33 | /* Already done in NUMA-Q firmware */ |
34 | } | 34 | } |
diff --git a/arch/x86/include/asm/summit/apic.h b/arch/x86/include/asm/summit/apic.h index 51df002ecf4c..9108c89fe881 100644 --- a/arch/x86/include/asm/summit/apic.h +++ b/arch/x86/include/asm/summit/apic.h | |||
@@ -37,7 +37,7 @@ static inline unsigned long summit_check_apicid_present(int bit) | |||
37 | 37 | ||
38 | extern u8 cpu_2_logical_apicid[]; | 38 | extern u8 cpu_2_logical_apicid[]; |
39 | 39 | ||
40 | static inline void init_apic_ldr(void) | 40 | static inline void summit_init_apic_ldr(void) |
41 | { | 41 | { |
42 | unsigned long val, id; | 42 | unsigned long val, id; |
43 | int count = 0; | 43 | int count = 0; |
diff --git a/arch/x86/kernel/apic.c b/arch/x86/kernel/apic.c index 3853ed76c888..b7077936ac09 100644 --- a/arch/x86/kernel/apic.c +++ b/arch/x86/kernel/apic.c | |||
@@ -1179,7 +1179,7 @@ void __cpuinit setup_local_APIC(void) | |||
1179 | * an APIC. See e.g. "AP-388 82489DX User's Manual" (Intel | 1179 | * an APIC. See e.g. "AP-388 82489DX User's Manual" (Intel |
1180 | * document number 292116). So here it goes... | 1180 | * document number 292116). So here it goes... |
1181 | */ | 1181 | */ |
1182 | init_apic_ldr(); | 1182 | apic->init_apic_ldr(); |
1183 | 1183 | ||
1184 | /* | 1184 | /* |
1185 | * Set Task Priority to 'accept all'. We never change this | 1185 | * Set Task Priority to 'accept all'. We never change this |
diff --git a/arch/x86/mach-generic/bigsmp.c b/arch/x86/mach-generic/bigsmp.c index 391cc99cd21c..7b7fc471a3f7 100644 --- a/arch/x86/mach-generic/bigsmp.c +++ b/arch/x86/mach-generic/bigsmp.c | |||
@@ -75,7 +75,7 @@ struct genapic apic_bigsmp = { | |||
75 | .check_apicid_present = bigsmp_check_apicid_present, | 75 | .check_apicid_present = bigsmp_check_apicid_present, |
76 | 76 | ||
77 | .vector_allocation_domain = bigsmp_vector_allocation_domain, | 77 | .vector_allocation_domain = bigsmp_vector_allocation_domain, |
78 | .init_apic_ldr = init_apic_ldr, | 78 | .init_apic_ldr = bigsmp_init_apic_ldr, |
79 | 79 | ||
80 | .ioapic_phys_id_map = ioapic_phys_id_map, | 80 | .ioapic_phys_id_map = ioapic_phys_id_map, |
81 | .setup_apic_routing = setup_apic_routing, | 81 | .setup_apic_routing = setup_apic_routing, |
diff --git a/arch/x86/mach-generic/default.c b/arch/x86/mach-generic/default.c index 6adc3c69a3c9..633e8482af25 100644 --- a/arch/x86/mach-generic/default.c +++ b/arch/x86/mach-generic/default.c | |||
@@ -56,7 +56,7 @@ struct genapic apic_default = { | |||
56 | .check_apicid_present = default_check_apicid_present, | 56 | .check_apicid_present = default_check_apicid_present, |
57 | 57 | ||
58 | .vector_allocation_domain = default_vector_allocation_domain, | 58 | .vector_allocation_domain = default_vector_allocation_domain, |
59 | .init_apic_ldr = init_apic_ldr, | 59 | .init_apic_ldr = default_init_apic_ldr, |
60 | 60 | ||
61 | .ioapic_phys_id_map = ioapic_phys_id_map, | 61 | .ioapic_phys_id_map = ioapic_phys_id_map, |
62 | .setup_apic_routing = setup_apic_routing, | 62 | .setup_apic_routing = setup_apic_routing, |
diff --git a/arch/x86/mach-generic/es7000.c b/arch/x86/mach-generic/es7000.c index bc1f21cd6a4d..b70833e35976 100644 --- a/arch/x86/mach-generic/es7000.c +++ b/arch/x86/mach-generic/es7000.c | |||
@@ -24,7 +24,7 @@ void __init es7000_update_genapic_to_cluster(void) | |||
24 | apic->irq_delivery_mode = INT_DELIVERY_MODE_CLUSTER; | 24 | apic->irq_delivery_mode = INT_DELIVERY_MODE_CLUSTER; |
25 | apic->irq_dest_mode = INT_DEST_MODE_CLUSTER; | 25 | apic->irq_dest_mode = INT_DEST_MODE_CLUSTER; |
26 | 26 | ||
27 | apic->init_apic_ldr = init_apic_ldr_cluster; | 27 | apic->init_apic_ldr = es7000_init_apic_ldr_cluster; |
28 | 28 | ||
29 | apic->cpu_mask_to_apicid = cpu_mask_to_apicid_cluster; | 29 | apic->cpu_mask_to_apicid = cpu_mask_to_apicid_cluster; |
30 | } | 30 | } |
@@ -117,7 +117,7 @@ struct genapic apic_es7000 = { | |||
117 | .check_apicid_present = es7000_check_apicid_present, | 117 | .check_apicid_present = es7000_check_apicid_present, |
118 | 118 | ||
119 | .vector_allocation_domain = es7000_vector_allocation_domain, | 119 | .vector_allocation_domain = es7000_vector_allocation_domain, |
120 | .init_apic_ldr = init_apic_ldr, | 120 | .init_apic_ldr = es7000_init_apic_ldr, |
121 | 121 | ||
122 | .ioapic_phys_id_map = ioapic_phys_id_map, | 122 | .ioapic_phys_id_map = ioapic_phys_id_map, |
123 | .setup_apic_routing = setup_apic_routing, | 123 | .setup_apic_routing = setup_apic_routing, |
diff --git a/arch/x86/mach-generic/numaq.c b/arch/x86/mach-generic/numaq.c index 712882f48c4e..a06fda579281 100644 --- a/arch/x86/mach-generic/numaq.c +++ b/arch/x86/mach-generic/numaq.c | |||
@@ -62,7 +62,7 @@ struct genapic apic_numaq = { | |||
62 | .check_apicid_present = numaq_check_apicid_present, | 62 | .check_apicid_present = numaq_check_apicid_present, |
63 | 63 | ||
64 | .vector_allocation_domain = numaq_vector_allocation_domain, | 64 | .vector_allocation_domain = numaq_vector_allocation_domain, |
65 | .init_apic_ldr = init_apic_ldr, | 65 | .init_apic_ldr = numaq_init_apic_ldr, |
66 | 66 | ||
67 | .ioapic_phys_id_map = ioapic_phys_id_map, | 67 | .ioapic_phys_id_map = ioapic_phys_id_map, |
68 | .setup_apic_routing = setup_apic_routing, | 68 | .setup_apic_routing = setup_apic_routing, |
diff --git a/arch/x86/mach-generic/summit.c b/arch/x86/mach-generic/summit.c index 1834887b94a3..36c552fa4275 100644 --- a/arch/x86/mach-generic/summit.c +++ b/arch/x86/mach-generic/summit.c | |||
@@ -55,7 +55,7 @@ struct genapic apic_summit = { | |||
55 | .check_apicid_present = summit_check_apicid_present, | 55 | .check_apicid_present = summit_check_apicid_present, |
56 | 56 | ||
57 | .vector_allocation_domain = summit_vector_allocation_domain, | 57 | .vector_allocation_domain = summit_vector_allocation_domain, |
58 | .init_apic_ldr = init_apic_ldr, | 58 | .init_apic_ldr = summit_init_apic_ldr, |
59 | 59 | ||
60 | .ioapic_phys_id_map = ioapic_phys_id_map, | 60 | .ioapic_phys_id_map = ioapic_phys_id_map, |
61 | .setup_apic_routing = setup_apic_routing, | 61 | .setup_apic_routing = setup_apic_routing, |