summaryrefslogtreecommitdiffstats
path: root/arch/mips/vr41xx/common/pmu.c
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2006-06-28 13:18:53 +1000
committerPaul Mackerras <paulus@samba.org>2006-06-29 16:22:47 +1000
commit33dbcf72f607f5da791402e161feaf1ccf5d5be4 (patch)
treeb7c1b9de64e5855b3d0972e8cfdde862e0de9777 /arch/mips/vr41xx/common/pmu.c
parentfeb76c7b23fb660f015583359a4c75a1139c0d36 (diff)
downloadblackbird-op-linux-33dbcf72f607f5da791402e161feaf1ccf5d5be4.tar.gz
blackbird-op-linux-33dbcf72f607f5da791402e161feaf1ccf5d5be4.zip
[POWERPC] Make sure smp_processor_id works very early in boot
There's a small period early in boot where we don't know which cpu we're running on. That's ok, except that it means we have no paca, or more correctly that our paca pointer points somewhere random. So that we can safely call things like smp_processor_id(), we need a paca, so just assume we're on cpu 0. No code should _write_ to the paca before we've set the correct one up. We setup the proper paca after we've scanned the flat device tree in early_setup(), so there's no need to do it again in start_here_common. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/mips/vr41xx/common/pmu.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud