]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] powerpc: Allow non zero boot cpuids
authorAnton Blanchard <anton@samba.org>
Sat, 25 Mar 2006 06:25:17 +0000 (17:25 +1100)
committerPaul Mackerras <paulus@samba.org>
Mon, 27 Mar 2006 03:48:48 +0000 (14:48 +1100)
commit998a3f206743339cdf1ee3879c90a8fe7b344226
tree39f831cf5f778b14a08b3453a8f798b2b8be8813
parent154258176b33c704b827a3c78a22e4851abdf0d3
[PATCH] powerpc: Allow non zero boot cpuids

We currently have a hack to flip the boot cpu and its secondary thread
to logical cpuid 0 and 1. This means the logical - physical mapping will
differ depending on which cpu is boot cpu. This is most apparent on
kexec, where we might kexec on any cpu and therefore change the mapping
from boot to boot.

The patch below does a first pass early on to work out the logical cpuid
of the boot thread. We then fix up some paca structures to match.

Ive also removed the boot_cpuid_phys variable for ppc64, to be
consistent we use get_hard_smp_processor_id(boot_cpuid) everywhere.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/head_64.S
arch/powerpc/kernel/paca.c
arch/powerpc/kernel/prom.c
arch/powerpc/kernel/setup-common.c
arch/powerpc/kernel/setup_64.c
arch/powerpc/platforms/pseries/xics.c
include/asm-powerpc/paca.h
include/asm-powerpc/smp.h