diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-28 06:43:18 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-28 17:20:25 -0500 |
commit | a27a621001f4c3e57caf47feff4b014577fd01c6 (patch) | |
tree | 0f14c4c8eaff3c11142672f16a63e7b6e42d81a7 /arch/x86/kernel/smpboot.c | |
parent | d83093b50416f4ca59d3a84b2ddc217748214d64 (diff) |
x86: refactor ->check_phys_apicid_present() subarch methods
- spread out the namespace to per driver methods
- extend it to 64-bit as well so that we can use
apic->check_phys_apicid_present() unconditionally
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
-rw-r--r-- | arch/x86/kernel/smpboot.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 0e7d26c01f9f..ab83be2f8e0f 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -908,6 +908,11 @@ int default_cpu_present_to_apicid(int mps_cpu) | |||
908 | { | 908 | { |
909 | return __default_cpu_present_to_apicid(mps_cpu); | 909 | return __default_cpu_present_to_apicid(mps_cpu); |
910 | } | 910 | } |
911 | |||
912 | int default_check_phys_apicid_present(int boot_cpu_physical_apicid) | ||
913 | { | ||
914 | return __default_check_phys_apicid_present(boot_cpu_physical_apicid); | ||
915 | } | ||
911 | #endif | 916 | #endif |
912 | 917 | ||
913 | int __cpuinit native_cpu_up(unsigned int cpu) | 918 | int __cpuinit native_cpu_up(unsigned int cpu) |
@@ -1058,7 +1063,7 @@ static int __init smp_sanity_check(unsigned max_cpus) | |||
1058 | * Should not be necessary because the MP table should list the boot | 1063 | * Should not be necessary because the MP table should list the boot |
1059 | * CPU too, but we do it for the sake of robustness anyway. | 1064 | * CPU too, but we do it for the sake of robustness anyway. |
1060 | */ | 1065 | */ |
1061 | if (!check_phys_apicid_present(boot_cpu_physical_apicid)) { | 1066 | if (!apic->check_phys_apicid_present(boot_cpu_physical_apicid)) { |
1062 | printk(KERN_NOTICE | 1067 | printk(KERN_NOTICE |
1063 | "weird, boot CPU (#%d) not listed by the BIOS.\n", | 1068 | "weird, boot CPU (#%d) not listed by the BIOS.\n", |
1064 | boot_cpu_physical_apicid); | 1069 | boot_cpu_physical_apicid); |