]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] Initialize paca->current earlier
authorBenjamin Herrenschmidt <benh@ozlabs.org>
Wed, 9 Apr 2008 07:21:26 +0000 (17:21 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 16 Apr 2008 21:46:10 +0000 (07:46 +1000)
commit7c6352a4699e9a3a2d91b2cddbf3f1048207e904
tree2f7be099bbe8a205096536ddddf1628573c92597
parent55045d47d7a8c4c61bc0ca6f2fac5087dd598bc3
[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 <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/head_64.S
arch/powerpc/kernel/paca.c