mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
[PATCH] x86_64: Allocate PDAs in the local node
Patch uses a static PDA array early at boot and reallocates processor PDA with node local memory when kmalloc is ready, just before pda_init. The boot_cpu_pda is needed since the cpu_pda is used even before pda_init for that cpu is called (to set the static per-cpu areas offset table etc) Signed-off-by: Ravikiran Thirumalai <kiran@scalex86.org> Signed-off-by: Shai Fultheim <shai@scalex86.org> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
df79efde82
commit
365ba9179f
4 changed files with 25 additions and 3 deletions
|
|
@ -27,9 +27,10 @@ struct x8664_pda {
|
|||
unsigned apic_timer_irqs;
|
||||
} ____cacheline_aligned_in_smp;
|
||||
|
||||
extern struct x8664_pda _cpu_pda[];
|
||||
extern struct x8664_pda *_cpu_pda[];
|
||||
extern struct x8664_pda boot_cpu_pda[];
|
||||
|
||||
#define cpu_pda(i) (&_cpu_pda[i])
|
||||
#define cpu_pda(i) (_cpu_pda[i])
|
||||
|
||||
/*
|
||||
* There is no fast way to get the base address of the PDA, all the accesses
|
||||
|
|
|
|||
Loading…
Reference in a new issue