aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2010-08-10 16:02:05 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-09-02 00:07:31 -0400
commite1f0ece113fe028593b6869fe191a991322c5d85 (patch)
tree669dbde0c11ff9ebfc279debf6ed7a2cf82980e9 /arch
parent28b549905b239357db7c249e261857c1716db05a (diff)
powerpc: Move arch_sd_sibling_asym_packing() to smp.c
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/process.c11
-rw-r--r--arch/powerpc/kernel/smp.c9
2 files changed, 9 insertions, 11 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c
index b1c648a36b03..37bc8ff16cac 100644
--- a/arch/powerpc/kernel/process.c
+++ b/arch/powerpc/kernel/process.c
@@ -1298,14 +1298,3 @@ unsigned long randomize_et_dyn(unsigned long base)
1298 1298
1299 return ret; 1299 return ret;
1300} 1300}
1301
1302#ifdef CONFIG_SMP
1303int arch_sd_sibling_asym_packing(void)
1304{
1305 if (cpu_has_feature(CPU_FTR_ASYM_SMT)) {
1306 printk_once(KERN_INFO "Enabling Asymmetric SMT scheduling\n");
1307 return SD_ASYM_PACKING;
1308 }
1309 return 0;
1310}
1311#endif
diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c
index 0008bc58e826..9019f0f1bb5e 100644
--- a/arch/powerpc/kernel/smp.c
+++ b/arch/powerpc/kernel/smp.c
@@ -580,6 +580,15 @@ void __init smp_cpus_done(unsigned int max_cpus)
580 dump_numa_cpu_topology(); 580 dump_numa_cpu_topology();
581} 581}
582 582
583int arch_sd_sibling_asym_packing(void)
584{
585 if (cpu_has_feature(CPU_FTR_ASYM_SMT)) {
586 printk_once(KERN_INFO "Enabling Asymmetric SMT scheduling\n");
587 return SD_ASYM_PACKING;
588 }
589 return 0;
590}
591
583#ifdef CONFIG_HOTPLUG_CPU 592#ifdef CONFIG_HOTPLUG_CPU
584int __cpu_disable(void) 593int __cpu_disable(void)
585{ 594{