x86: use cpumask function for present, possible, and online cpus
cpu_online(), cpu_present(), for_each_possible_cpu(), num_possible_cpus() Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
877084fb1c
commit
7c04e64a1b
@@ -1058,7 +1058,7 @@ int __cpuinit native_cpu_up(unsigned int cpu)
|
||||
check_tsc_sync_source(cpu);
|
||||
local_irq_restore(flags);
|
||||
|
||||
while (!cpu_isset(cpu, cpu_online_map)) {
|
||||
while (!cpu_online(cpu)) {
|
||||
cpu_relax();
|
||||
touch_nmi_watchdog();
|
||||
}
|
||||
@@ -1168,7 +1168,7 @@ static void __init smp_cpu_index_default(void)
|
||||
int i;
|
||||
struct cpuinfo_x86 *c;
|
||||
|
||||
for_each_cpu_mask(i, cpu_possible_map) {
|
||||
for_each_possible_cpu(i) {
|
||||
c = &cpu_data(i);
|
||||
/* mark all to hotplug */
|
||||
c->cpu_index = NR_CPUS;
|
||||
|
Reference in New Issue
Block a user