From: Benjamin Herrenschmidt Date: Wed, 9 Apr 2008 07:21:26 +0000 (+1000) Subject: [POWERPC] Initialize paca->current earlier X-Git-Tag: v2.6.26-rc1~1125^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c6352a4699e9a3a2d91b2cddbf3f1048207e904;p=pandora-kernel.git [POWERPC] Initialize paca->current earlier Currently, we initialize the "current" pointer in the PACA (which is used by the "current" macro in the kernel) before calling setup_system(). That means that early_setup() is called with current still "NULL" which is -not- a good idea. It happens to work so far but breaks with lockdep when early code calls printk. This changes it so that all PACAs are statically initialized with __current pointing to the init task. For non-0 CPUs, this is fixed up before use. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed