]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/kernel/smp.c
[PATCH] powerpc: merge code values for identifying platforms
[linux-2.6-omap-h63xx.git] / arch / powerpc / kernel / smp.c
index 5c330c3366e42e2ec500cd8fe98fbdd7c94c3bc8..7fd530898bd11c9a66beb8d13d42e91afb326124 100644 (file)
@@ -44,6 +44,7 @@
 #include <asm/cputable.h>
 #include <asm/system.h>
 #include <asm/mpic.h>
+#include <asm/systemcfg.h>
 #ifdef CONFIG_PPC64
 #include <asm/paca.h>
 #endif
@@ -368,7 +369,9 @@ int generic_cpu_disable(void)
        if (cpu == boot_cpuid)
                return -EBUSY;
 
-       systemcfg->processorCount--;
+#ifdef CONFIG_PPC64
+       _systemcfg->processorCount--;
+#endif
        cpu_clear(cpu, cpu_online_map);
        fixup_irqs(cpu_online_map);
        return 0;