diff options
author | Olof Johansson <olof@lixom.net> | 2006-08-11 01:07:08 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-08-24 23:27:35 -0400 |
commit | f39b7a55a84e34e3074b168e30dc73b66e85261d (patch) | |
tree | 9be321bfcd5d0404309b1514127987117c2541cc /include/asm-powerpc/cputable.h | |
parent | 2e97425197ecf85641a89e5a4868f8e147cc443f (diff) |
[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>
Diffstat (limited to 'include/asm-powerpc/cputable.h')
-rw-r--r-- | include/asm-powerpc/cputable.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-powerpc/cputable.h b/include/asm-powerpc/cputable.h index 1ba3c9983614..748bc1805da9 100644 --- a/include/asm-powerpc/cputable.h +++ b/include/asm-powerpc/cputable.h | |||
@@ -36,6 +36,7 @@ | |||
36 | struct cpu_spec; | 36 | struct cpu_spec; |
37 | 37 | ||
38 | typedef void (*cpu_setup_t)(unsigned long offset, struct cpu_spec* spec); | 38 | typedef void (*cpu_setup_t)(unsigned long offset, struct cpu_spec* spec); |
39 | typedef void (*cpu_restore_t)(void); | ||
39 | 40 | ||
40 | enum powerpc_oprofile_type { | 41 | enum powerpc_oprofile_type { |
41 | PPC_OPROFILE_INVALID = 0, | 42 | PPC_OPROFILE_INVALID = 0, |
@@ -65,6 +66,8 @@ struct cpu_spec { | |||
65 | * BHT, SPD, etc... from head.S before branching to identify_machine | 66 | * BHT, SPD, etc... from head.S before branching to identify_machine |
66 | */ | 67 | */ |
67 | cpu_setup_t cpu_setup; | 68 | cpu_setup_t cpu_setup; |
69 | /* Used to restore cpu setup on secondary processors and at resume */ | ||
70 | cpu_restore_t cpu_restore; | ||
68 | 71 | ||
69 | /* Used by oprofile userspace to select the right counters */ | 72 | /* Used by oprofile userspace to select the right counters */ |
70 | char *oprofile_cpu_type; | 73 | char *oprofile_cpu_type; |