powerpc: Move arch_sd_sibling_asym_packing() to smp.c
authorMichael Neuling <mikey@neuling.org>
Tue, 10 Aug 2010 20:02:05 +0000 (20:02 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 2 Sep 2010 04:07:31 +0000 (14:07 +1000)
Simple cleanup by moving arch_sd_sibling_asym_packing from process.c to
smp.c to save an #ifdef CONFIG_SMP

No functionality change.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/process.c
arch/powerpc/kernel/smp.c

index b1c648a36b03cbc2d08104b30ccd21e14bf70644..37bc8ff16cac33f9423580bb178d8f26fb4fdfff 100644 (file)
@@ -1298,14 +1298,3 @@ unsigned long randomize_et_dyn(unsigned long base)
 
        return ret;
 }
-
-#ifdef CONFIG_SMP
-int arch_sd_sibling_asym_packing(void)
-{
-       if (cpu_has_feature(CPU_FTR_ASYM_SMT)) {
-               printk_once(KERN_INFO "Enabling Asymmetric SMT scheduling\n");
-               return SD_ASYM_PACKING;
-       }
-       return 0;
-}
-#endif
index 0008bc58e826c53b29f9e689336388f16377eb77..9019f0f1bb5e23d90d14c047dc9306ff61c0fb97 100644 (file)
@@ -580,6 +580,15 @@ void __init smp_cpus_done(unsigned int max_cpus)
        dump_numa_cpu_topology();
 }
 
+int arch_sd_sibling_asym_packing(void)
+{
+       if (cpu_has_feature(CPU_FTR_ASYM_SMT)) {
+               printk_once(KERN_INFO "Enabling Asymmetric SMT scheduling\n");
+               return SD_ASYM_PACKING;
+       }
+       return 0;
+}
+
 #ifdef CONFIG_HOTPLUG_CPU
 int __cpu_disable(void)
 {