diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-28 08:08:38 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-28 17:20:29 -0500 |
commit | ca6c8ed4646f8ccaa4f7db618bf69b8b8fb49767 (patch) | |
tree | 0d321219bba34dab2a43bad628042440cc493ed2 /arch/x86/kernel/genx2apic_cluster.c | |
parent | 9c7642470ecf03d8b4946a2addc8fe631b8426dd (diff) |
x86, apic: refactor ->get_apic_id() & GET_APIC_ID()
- spread out the namespace on a per driver basis
- get rid of macro wrappers
- small cleanups
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/genx2apic_cluster.c')
-rw-r--r-- | arch/x86/kernel/genx2apic_cluster.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/genx2apic_cluster.c b/arch/x86/kernel/genx2apic_cluster.c index 18b6f14376eb..c7557e051848 100644 --- a/arch/x86/kernel/genx2apic_cluster.c +++ b/arch/x86/kernel/genx2apic_cluster.c | |||
@@ -141,7 +141,7 @@ static unsigned int x2apic_cpu_mask_to_apicid_and(const struct cpumask *cpumask, | |||
141 | return BAD_APICID; | 141 | return BAD_APICID; |
142 | } | 142 | } |
143 | 143 | ||
144 | static unsigned int get_apic_id(unsigned long x) | 144 | static unsigned int x2apic_cluster_phys_get_apic_id(unsigned long x) |
145 | { | 145 | { |
146 | unsigned int id; | 146 | unsigned int id; |
147 | 147 | ||
@@ -207,7 +207,7 @@ struct genapic apic_x2apic_cluster = { | |||
207 | .phys_pkg_id = x2apic_cluster_phys_pkg_id, | 207 | .phys_pkg_id = x2apic_cluster_phys_pkg_id, |
208 | .mps_oem_check = NULL, | 208 | .mps_oem_check = NULL, |
209 | 209 | ||
210 | .get_apic_id = get_apic_id, | 210 | .get_apic_id = x2apic_cluster_phys_get_apic_id, |
211 | .set_apic_id = set_apic_id, | 211 | .set_apic_id = set_apic_id, |
212 | .apic_id_mask = 0xFFFFFFFFu, | 212 | .apic_id_mask = 0xFFFFFFFFu, |
213 | 213 | ||