aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
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:21 -0500
commitd190cb87c4503014353f2310c4bfa2268fa7111d (patch)
treec78b5fe53adfad99200c286897ba8883f8dfb5d1 /arch/x86
parenta5c4329622a3437adef4b2a4288d127957743c97 (diff)
x86, apic: clean up ->ioapic_phys_id_map()
- separate the namespace - remove macros Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/include/asm/bigsmp/apic.h2
-rw-r--r--arch/x86/include/asm/es7000/apic.h2
-rw-r--r--arch/x86/include/asm/mach-default/mach_apic.h2
-rw-r--r--arch/x86/include/asm/mach-generic/mach_apic.h1
-rw-r--r--arch/x86/include/asm/numaq/apic.h2
-rw-r--r--arch/x86/include/asm/summit/apic.h3
-rw-r--r--arch/x86/kernel/io_apic.c4
-rw-r--r--arch/x86/mach-generic/bigsmp.c2
-rw-r--r--arch/x86/mach-generic/default.c2
-rw-r--r--arch/x86/mach-generic/es7000.c2
-rw-r--r--arch/x86/mach-generic/numaq.c2
-rw-r--r--arch/x86/mach-generic/summit.c2
12 files changed, 13 insertions, 13 deletions
diff --git a/arch/x86/include/asm/bigsmp/apic.h b/arch/x86/include/asm/bigsmp/apic.h
index 819413082999..05116d5487d2 100644
--- a/arch/x86/include/asm/bigsmp/apic.h
+++ b/arch/x86/include/asm/bigsmp/apic.h
@@ -94,7 +94,7 @@ static inline int cpu_to_logical_apicid(int cpu)
94 return cpu_physical_id(cpu); 94 return cpu_physical_id(cpu);
95} 95}
96 96
97static inline physid_mask_t ioapic_phys_id_map(physid_mask_t phys_map) 97static inline physid_mask_t bigsmp_ioapic_phys_id_map(physid_mask_t phys_map)
98{ 98{
99 /* For clustered we don't have a good way to do this yet - hack */ 99 /* For clustered we don't have a good way to do this yet - hack */
100 return physids_promote(0xFFL); 100 return physids_promote(0xFFL);
diff --git a/arch/x86/include/asm/es7000/apic.h b/arch/x86/include/asm/es7000/apic.h
index 06f5757bf7af..db3e652f0f7d 100644
--- a/arch/x86/include/asm/es7000/apic.h
+++ b/arch/x86/include/asm/es7000/apic.h
@@ -125,7 +125,7 @@ static inline int cpu_to_logical_apicid(int cpu)
125#endif 125#endif
126} 126}
127 127
128static inline physid_mask_t ioapic_phys_id_map(physid_mask_t phys_map) 128static inline physid_mask_t es7000_ioapic_phys_id_map(physid_mask_t phys_map)
129{ 129{
130 /* For clustered we don't have a good way to do this yet - hack */ 130 /* For clustered we don't have a good way to do this yet - hack */
131 return physids_promote(0xff); 131 return physids_promote(0xff);
diff --git a/arch/x86/include/asm/mach-default/mach_apic.h b/arch/x86/include/asm/mach-default/mach_apic.h
index 23e0a2da3a96..7abdaae06f24 100644
--- a/arch/x86/include/asm/mach-default/mach_apic.h
+++ b/arch/x86/include/asm/mach-default/mach_apic.h
@@ -99,7 +99,7 @@ static inline unsigned long default_check_apicid_present(int bit)
99 return physid_isset(bit, phys_cpu_present_map); 99 return physid_isset(bit, phys_cpu_present_map);
100} 100}
101 101
102static inline physid_mask_t ioapic_phys_id_map(physid_mask_t phys_map) 102static inline physid_mask_t default_ioapic_phys_id_map(physid_mask_t phys_map)
103{ 103{
104 return phys_map; 104 return phys_map;
105} 105}
diff --git a/arch/x86/include/asm/mach-generic/mach_apic.h b/arch/x86/include/asm/mach-generic/mach_apic.h
index 8e51f4163944..c1c96e6bb185 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 ioapic_phys_id_map (apic->ioapic_phys_id_map)
7#define setup_apic_routing (apic->setup_apic_routing) 6#define setup_apic_routing (apic->setup_apic_routing)
8#define multi_timer_check (apic->multi_timer_check) 7#define multi_timer_check (apic->multi_timer_check)
9#define apicid_to_node (apic->apicid_to_node) 8#define apicid_to_node (apic->apicid_to_node)
diff --git a/arch/x86/include/asm/numaq/apic.h b/arch/x86/include/asm/numaq/apic.h
index 802297489a34..dc7499b92629 100644
--- a/arch/x86/include/asm/numaq/apic.h
+++ b/arch/x86/include/asm/numaq/apic.h
@@ -48,7 +48,7 @@ static inline int multi_timer_check(int apic, int irq)
48 return apic != 0 && irq == 0; 48 return apic != 0 && irq == 0;
49} 49}
50 50
51static inline physid_mask_t ioapic_phys_id_map(physid_mask_t phys_map) 51static inline physid_mask_t numaq_ioapic_phys_id_map(physid_mask_t phys_map)
52{ 52{
53 /* We don't have a good way to do this yet - hack */ 53 /* We don't have a good way to do this yet - hack */
54 return physids_promote(0xFUL); 54 return physids_promote(0xFUL);
diff --git a/arch/x86/include/asm/summit/apic.h b/arch/x86/include/asm/summit/apic.h
index 9108c89fe881..4dafb58f9307 100644
--- a/arch/x86/include/asm/summit/apic.h
+++ b/arch/x86/include/asm/summit/apic.h
@@ -109,7 +109,8 @@ static inline int cpu_present_to_apicid(int mps_cpu)
109 return BAD_APICID; 109 return BAD_APICID;
110} 110}
111 111
112static inline physid_mask_t ioapic_phys_id_map(physid_mask_t phys_id_map) 112static inline physid_mask_t
113 summit_ioapic_phys_id_map(physid_mask_t phys_id_map)
113{ 114{
114 /* For clustered we don't have a good way to do this yet - hack */ 115 /* For clustered we don't have a good way to do this yet - hack */
115 return physids_promote(0x0F); 116 return physids_promote(0x0F);
diff --git a/arch/x86/kernel/io_apic.c b/arch/x86/kernel/io_apic.c
index 49899e066247..db79ad9a7646 100644
--- a/arch/x86/kernel/io_apic.c
+++ b/arch/x86/kernel/io_apic.c
@@ -2108,7 +2108,7 @@ static void __init setup_ioapic_ids_from_mpc(void)
2108 * This is broken; anything with a real cpu count has to 2108 * This is broken; anything with a real cpu count has to
2109 * circumvent this idiocy regardless. 2109 * circumvent this idiocy regardless.
2110 */ 2110 */
2111 phys_id_present_map = ioapic_phys_id_map(phys_cpu_present_map); 2111 phys_id_present_map = apic->ioapic_phys_id_map(phys_cpu_present_map);
2112 2112
2113 /* 2113 /*
2114 * Set the IOAPIC ID to the value stored in the MPC table. 2114 * Set the IOAPIC ID to the value stored in the MPC table.
@@ -3862,7 +3862,7 @@ int __init io_apic_get_unique_id(int ioapic, int apic_id)
3862 */ 3862 */
3863 3863
3864 if (physids_empty(apic_id_map)) 3864 if (physids_empty(apic_id_map))
3865 apic_id_map = ioapic_phys_id_map(phys_cpu_present_map); 3865 apic_id_map = apic->ioapic_phys_id_map(phys_cpu_present_map);
3866 3866
3867 spin_lock_irqsave(&ioapic_lock, flags); 3867 spin_lock_irqsave(&ioapic_lock, flags);
3868 reg_00.raw = io_apic_read(ioapic, 0); 3868 reg_00.raw = io_apic_read(ioapic, 0);
diff --git a/arch/x86/mach-generic/bigsmp.c b/arch/x86/mach-generic/bigsmp.c
index 7b7fc471a3f7..f2a3418d0cc9 100644
--- a/arch/x86/mach-generic/bigsmp.c
+++ b/arch/x86/mach-generic/bigsmp.c
@@ -77,7 +77,7 @@ struct genapic apic_bigsmp = {
77 .vector_allocation_domain = bigsmp_vector_allocation_domain, 77 .vector_allocation_domain = bigsmp_vector_allocation_domain,
78 .init_apic_ldr = bigsmp_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 = bigsmp_ioapic_phys_id_map,
81 .setup_apic_routing = setup_apic_routing, 81 .setup_apic_routing = setup_apic_routing,
82 .multi_timer_check = multi_timer_check, 82 .multi_timer_check = multi_timer_check,
83 .apicid_to_node = apicid_to_node, 83 .apicid_to_node = apicid_to_node,
diff --git a/arch/x86/mach-generic/default.c b/arch/x86/mach-generic/default.c
index 633e8482af25..c403f3d9300c 100644
--- a/arch/x86/mach-generic/default.c
+++ b/arch/x86/mach-generic/default.c
@@ -58,7 +58,7 @@ struct genapic apic_default = {
58 .vector_allocation_domain = default_vector_allocation_domain, 58 .vector_allocation_domain = default_vector_allocation_domain,
59 .init_apic_ldr = default_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 = default_ioapic_phys_id_map,
62 .setup_apic_routing = setup_apic_routing, 62 .setup_apic_routing = setup_apic_routing,
63 .multi_timer_check = multi_timer_check, 63 .multi_timer_check = multi_timer_check,
64 .apicid_to_node = apicid_to_node, 64 .apicid_to_node = apicid_to_node,
diff --git a/arch/x86/mach-generic/es7000.c b/arch/x86/mach-generic/es7000.c
index b70833e35976..ce09baf08724 100644
--- a/arch/x86/mach-generic/es7000.c
+++ b/arch/x86/mach-generic/es7000.c
@@ -119,7 +119,7 @@ struct genapic apic_es7000 = {
119 .vector_allocation_domain = es7000_vector_allocation_domain, 119 .vector_allocation_domain = es7000_vector_allocation_domain,
120 .init_apic_ldr = es7000_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 = es7000_ioapic_phys_id_map,
123 .setup_apic_routing = setup_apic_routing, 123 .setup_apic_routing = setup_apic_routing,
124 .multi_timer_check = multi_timer_check, 124 .multi_timer_check = multi_timer_check,
125 .apicid_to_node = apicid_to_node, 125 .apicid_to_node = apicid_to_node,
diff --git a/arch/x86/mach-generic/numaq.c b/arch/x86/mach-generic/numaq.c
index a06fda579281..5d98f18a0bde 100644
--- a/arch/x86/mach-generic/numaq.c
+++ b/arch/x86/mach-generic/numaq.c
@@ -64,7 +64,7 @@ struct genapic apic_numaq = {
64 .vector_allocation_domain = numaq_vector_allocation_domain, 64 .vector_allocation_domain = numaq_vector_allocation_domain,
65 .init_apic_ldr = numaq_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 = numaq_ioapic_phys_id_map,
68 .setup_apic_routing = setup_apic_routing, 68 .setup_apic_routing = setup_apic_routing,
69 .multi_timer_check = multi_timer_check, 69 .multi_timer_check = multi_timer_check,
70 .apicid_to_node = apicid_to_node, 70 .apicid_to_node = apicid_to_node,
diff --git a/arch/x86/mach-generic/summit.c b/arch/x86/mach-generic/summit.c
index 36c552fa4275..6abdd53a01c5 100644
--- a/arch/x86/mach-generic/summit.c
+++ b/arch/x86/mach-generic/summit.c
@@ -57,7 +57,7 @@ struct genapic apic_summit = {
57 .vector_allocation_domain = summit_vector_allocation_domain, 57 .vector_allocation_domain = summit_vector_allocation_domain,
58 .init_apic_ldr = summit_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 = summit_ioapic_phys_id_map,
61 .setup_apic_routing = setup_apic_routing, 61 .setup_apic_routing = setup_apic_routing,
62 .multi_timer_check = multi_timer_check, 62 .multi_timer_check = multi_timer_check,
63 .apicid_to_node = apicid_to_node, 63 .apicid_to_node = apicid_to_node,