Re: [PATCH] x86,sched: Fix sched_smt_power_savings totally broken

From: Peter Zijlstra
Date: Mon Jan 09 2012 - 05:30:45 EST


On Mon, 2012-01-09 at 11:28 +0100, Peter Zijlstra wrote:
> +++ b/arch/x86/kernel/smpboot.c
> @@ -414,8 +414,7 @@ const struct cpumask *cpu_coregroup_mask(int cpu)
> * For perf, we return last level cache shared map.
> * And for power savings, we return cpu_core_map
> */
> - if ((sched_mc_power_savings || sched_smt_power_savings) &&
> - !(cpu_has(c, X86_FEATURE_AMD_DCM)))
> + if (!(cpu_has(c, X86_FEATURE_AMD_DCM)))
> return cpu_core_mask(cpu);
> else
> return cpu_llc_shared_mask(cpu);

That should of course become:

return cpu_llc_shared_mask(cpu);


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/