x86: fix up obsolete cpu function usage.
Thanks to spatch, plus manual removal of "&*". Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Cc: x86@kernel.org
This commit is contained in:
@@ -135,12 +135,12 @@ static void init_x2apic_ldr(void)
|
||||
|
||||
per_cpu(x86_cpu_to_logical_apicid, this_cpu) = apic_read(APIC_LDR);
|
||||
|
||||
__cpu_set(this_cpu, per_cpu(cpus_in_cluster, this_cpu));
|
||||
cpumask_set_cpu(this_cpu, per_cpu(cpus_in_cluster, this_cpu));
|
||||
for_each_online_cpu(cpu) {
|
||||
if (x2apic_cluster(this_cpu) != x2apic_cluster(cpu))
|
||||
continue;
|
||||
__cpu_set(this_cpu, per_cpu(cpus_in_cluster, cpu));
|
||||
__cpu_set(cpu, per_cpu(cpus_in_cluster, this_cpu));
|
||||
cpumask_set_cpu(this_cpu, per_cpu(cpus_in_cluster, cpu));
|
||||
cpumask_set_cpu(cpu, per_cpu(cpus_in_cluster, this_cpu));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -195,7 +195,7 @@ static int x2apic_init_cpu_notifier(void)
|
||||
|
||||
BUG_ON(!per_cpu(cpus_in_cluster, cpu) || !per_cpu(ipi_mask, cpu));
|
||||
|
||||
__cpu_set(cpu, per_cpu(cpus_in_cluster, cpu));
|
||||
cpumask_set_cpu(cpu, per_cpu(cpus_in_cluster, cpu));
|
||||
register_hotcpu_notifier(&x2apic_cpu_notifier);
|
||||
return 1;
|
||||
}
|
||||
|
مرجع در شماره جدید
Block a user