[POWERPC] Fix SLB initialization at boot time
authorPaul Mackerras <paulus@samba.org>
Sat, 25 Aug 2007 03:14:28 +0000 (13:14 +1000)
committerPaul Mackerras <paulus@samba.org>
Sat, 25 Aug 2007 06:58:43 +0000 (16:58 +1000)
commit175587cca7447daf5a13e4a53d32360ed8cba804
tree9594f43322c74d84e83469916dcd933859a915bb
parente120e8d03a263cf75f2abc0f8b3a03a65cfd3b88
[POWERPC] Fix SLB initialization at boot time

This partially reverts edd0622bd2e8f755c960827e15aa6908c3c5aa94.

It turns out that the part of that commit that aimed to ensure that we
created an SLB entry for the kernel stack on secondary CPUs when
starting the CPU didn't achieve its aim, and in fact caused a
regression, because get_paca()->kstack is not initialized at the point
where slb_initialize is called.

This therefore just reverts that part of that commit, while keeping
the change to slb_flush_and_rebolt, which is correct and necessary.

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/slb.c