mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-28 17:13:13 -05:00
x86/apic: Mop up early_per_cpu() abuse
UV X2APIC uses the per CPU variable from:
native_smp_prepare_cpus()
uv_system_init()
uv_system_init_hub()
which is long after the per CPU areas have been set up.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Michael Kelley <mikelley@microsoft.com>
Tested-by: Sohil Mehta <sohil.mehta@intel.com>
Tested-by: Juergen Gross <jgross@suse.com> # Xen PV (dom0 and unpriv. guest)
This commit is contained in:
committed by
Dave Hansen
parent
ec9fb3c5f4
commit
e3243ed014
@@ -1843,7 +1843,7 @@ static void __init uv_system_init_hub(void)
|
||||
|
||||
/* Initialize per CPU info: */
|
||||
for_each_possible_cpu(cpu) {
|
||||
int apicid = early_per_cpu(x86_cpu_to_apicid, cpu);
|
||||
int apicid = per_cpu(x86_cpu_to_apicid, cpu);
|
||||
unsigned short bid;
|
||||
unsigned short pnode;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user