]> err.no Git - linux-2.6/commit
[POWERPC] Cleanup CPU inits
authorOlof Johansson <olof@lixom.net>
Fri, 11 Aug 2006 05:07:08 +0000 (00:07 -0500)
committerPaul Mackerras <paulus@samba.org>
Fri, 25 Aug 2006 03:27:35 +0000 (13:27 +1000)
commitf39b7a55a84e34e3074b168e30dc73b66e85261d
tree9be321bfcd5d0404309b1514127987117c2541cc
parent2e97425197ecf85641a89e5a4868f8e147cc443f
[POWERPC] Cleanup CPU inits

Cleanup CPU inits a bit more, Geoff Levand already did some earlier.

* Move CPU state save to cpu_setup, since cpu_setup is only ever done
  on cpu 0 on 64-bit and save is never done more than once.
* Rename __restore_cpu_setup to __restore_cpu_ppc970 and add
  function pointers to the cputable to use instead. Powermac always
  has 970 so no need to check there.
* Rename __970_cpu_preinit to __cpu_preinit_ppc970 and check PVR before
  calling it instead of in it, it's too early to use cputable.
* Rename pSeries_secondary_smp_init to generic_secondary_smp_init since
  everyone but powermac and iSeries use it.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/asm-offsets.c
arch/powerpc/kernel/cpu_setup_ppc970.S
arch/powerpc/kernel/cputable.c
arch/powerpc/kernel/head_64.S
arch/powerpc/platforms/cell/smp.c
arch/powerpc/platforms/pseries/smp.c
include/asm-powerpc/cputable.h