diff options
| author | Anton Blanchard <anton@samba.org> | 2002-06-22 05:29:18 +1000 |
|---|---|---|
| committer | Anton Blanchard <anton@samba.org> | 2002-06-22 05:29:18 +1000 |
| commit | a9d1ed0d1a2fdf6cbfb38cd3e0f702bdbc5fa037 (patch) | |
| tree | 565479005a508d96b42c709cabd22d216088e3c9 /arch/ppc64/kernel/process.c | |
| parent | e7c3270d63468121a6f5e4f3a242fa76e6821228 (diff) | |
ppc64: non linear cpu support
Diffstat (limited to 'arch/ppc64/kernel/process.c')
| -rw-r--r-- | arch/ppc64/kernel/process.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/ppc64/kernel/process.c b/arch/ppc64/kernel/process.c index b794c8585d58..6b8d9d5ff65f 100644 --- a/arch/ppc64/kernel/process.c +++ b/arch/ppc64/kernel/process.c @@ -304,7 +304,9 @@ void initialize_paca_hardware_interrupt_stack(void) unsigned long stack; unsigned long end_of_stack =0; - for (i=1; i < naca->processorCount; i++) { + for (i=1; i < NR_CPUS; i++) { + if (!cpu_possible(i)) + continue; /* Carve out storage for the hardware interrupt stack */ stack = __get_free_pages(GFP_KERNEL, get_order(8*PAGE_SIZE)); @@ -327,7 +329,9 @@ void initialize_paca_hardware_interrupt_stack(void) if (__is_processor(PV_POWER4)) return; - for (i=0; i < naca->processorCount; i++) { + for (i=0; i < NR_CPUS; i++) { + if (!cpu_possible(i)) + continue; /* set page at the top of stack to be protected - prevent overflow */ end_of_stack = paca[i].xHrdIntStack - (8*PAGE_SIZE - STACK_FRAME_OVERHEAD); ppc_md.hpte_updateboltedpp(PP_RXRX,end_of_stack); |
