diff options
author | Kumar Gala | 2005-09-27 22:13:12 +0200 |
---|---|---|
committer | Paul Mackerras | 2005-09-28 07:42:54 +0200 |
commit | 400d221274426958f1e1c7081a247bea9cede696 (patch) | |
tree | db0907bc14504d827b06b45004152b6610387b40 /arch/ppc/platforms/pmac_setup.c | |
parent | [PATCH] powerpc: merged asm/cputable.h (diff) | |
download | kernel-qcow2-linux-400d221274426958f1e1c7081a247bea9cede696.tar.gz kernel-qcow2-linux-400d221274426958f1e1c7081a247bea9cede696.tar.xz kernel-qcow2-linux-400d221274426958f1e1c7081a247bea9cede696.zip |
[PATCH] ppc32: make cur_cpu_spec a single pointer instead of an array
Changed ppc32 so that cur_cpu_spec is just a single pointer for all CPUs.
Additionally, made call_setup_cpu check to see if the cpu_setup pointer
is NULL or not before calling the function. This lets remove the dummy
cpu_setup calls that just return.
Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc/platforms/pmac_setup.c')
-rw-r--r-- | arch/ppc/platforms/pmac_setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ppc/platforms/pmac_setup.c b/arch/ppc/platforms/pmac_setup.c index 1ad779ecc8fc..e6a12182bfbb 100644 --- a/arch/ppc/platforms/pmac_setup.c +++ b/arch/ppc/platforms/pmac_setup.c @@ -448,7 +448,7 @@ static int pmac_pm_enter(suspend_state_t state) enable_kernel_fp(); #ifdef CONFIG_ALTIVEC - if (cur_cpu_spec[0]->cpu_features & CPU_FTR_ALTIVEC) + if (cur_cpu_spec->cpu_features & CPU_FTR_ALTIVEC) enable_kernel_altivec(); #endif /* CONFIG_ALTIVEC */ |