From: Michael Ellerman Date: Wed, 28 Jun 2006 03:18:53 +0000 (+1000) Subject: [POWERPC] Make sure smp_processor_id works very early in boot X-Git-Tag: v2.6.18-rc1~358^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33dbcf72f607f5da791402e161feaf1ccf5d5be4;p=pandora-kernel.git [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 Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed