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:24 -0500 |
commit | a21769a4461801454930a06bc18bd8249cd9e993 (patch) | |
tree | 8b879f9a6d1c957d17a155ff865a0f7c8a18e257 /arch/x86/include/asm/mach-default | |
parent | 5257c5111ca21c8e857b65a79ab986b313e1c362 (diff) |
x86, apic: clean up ->cpu_present_to_apicid()
- separate the namespace
- remove macros
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/mach-default')
-rw-r--r-- | arch/x86/include/asm/mach-default/mach_apic.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/x86/include/asm/mach-default/mach_apic.h b/arch/x86/include/asm/mach-default/mach_apic.h index eae3e4b6ed04..15d5627a9d6f 100644 --- a/arch/x86/include/asm/mach-default/mach_apic.h +++ b/arch/x86/include/asm/mach-default/mach_apic.h | |||
@@ -110,7 +110,7 @@ static inline int default_cpu_to_logical_apicid(int cpu) | |||
110 | return 1 << cpu; | 110 | return 1 << cpu; |
111 | } | 111 | } |
112 | 112 | ||
113 | static inline int cpu_present_to_apicid(int mps_cpu) | 113 | static inline int __default_cpu_present_to_apicid(int mps_cpu) |
114 | { | 114 | { |
115 | if (mps_cpu < nr_cpu_ids && cpu_present(mps_cpu)) | 115 | if (mps_cpu < nr_cpu_ids && cpu_present(mps_cpu)) |
116 | return (int)per_cpu(x86_bios_cpu_apicid, mps_cpu); | 116 | return (int)per_cpu(x86_bios_cpu_apicid, mps_cpu); |
@@ -118,6 +118,15 @@ static inline int cpu_present_to_apicid(int mps_cpu) | |||
118 | return BAD_APICID; | 118 | return BAD_APICID; |
119 | } | 119 | } |
120 | 120 | ||
121 | #ifdef CONFIG_X86_32 | ||
122 | static inline int default_cpu_present_to_apicid(int mps_cpu) | ||
123 | { | ||
124 | return __default_cpu_present_to_apicid(mps_cpu); | ||
125 | } | ||
126 | #else | ||
127 | extern int default_cpu_present_to_apicid(int mps_cpu); | ||
128 | #endif | ||
129 | |||
121 | static inline physid_mask_t apicid_to_cpu_present(int phys_apicid) | 130 | static inline physid_mask_t apicid_to_cpu_present(int phys_apicid) |
122 | { | 131 | { |
123 | return physid_mask_of_physid(phys_apicid); | 132 | return physid_mask_of_physid(phys_apicid); |