diff options
author | Ravikiran G Thirumalai <kiran@scalex86.org> | 2006-01-11 16:45:42 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-11 22:04:59 -0500 |
commit | 365ba9179f84244d2ffa98e46ae3cddfeb2ef6ff (patch) | |
tree | b84be7f9f929d8084fa76af2618877439baee841 /include/asm-x86_64/pda.h | |
parent | df79efde82952edc653fa6eb1338a82b87aa0585 (diff) |
[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>
Diffstat (limited to 'include/asm-x86_64/pda.h')
-rw-r--r-- | include/asm-x86_64/pda.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asm-x86_64/pda.h b/include/asm-x86_64/pda.h index dc33d28a72dd..c7ab38a601af 100644 --- a/include/asm-x86_64/pda.h +++ b/include/asm-x86_64/pda.h | |||
@@ -27,9 +27,10 @@ struct x8664_pda { | |||
27 | unsigned apic_timer_irqs; | 27 | unsigned apic_timer_irqs; |
28 | } ____cacheline_aligned_in_smp; | 28 | } ____cacheline_aligned_in_smp; |
29 | 29 | ||
30 | extern struct x8664_pda _cpu_pda[]; | 30 | extern struct x8664_pda *_cpu_pda[]; |
31 | extern struct x8664_pda boot_cpu_pda[]; | ||
31 | 32 | ||
32 | #define cpu_pda(i) (&_cpu_pda[i]) | 33 | #define cpu_pda(i) (_cpu_pda[i]) |
33 | 34 | ||
34 | /* | 35 | /* |
35 | * There is no fast way to get the base address of the PDA, all the accesses | 36 | * There is no fast way to get the base address of the PDA, all the accesses |