sched/x86: Use cpu_llc_shared_mask(cpu) for coregroup_mask
Commit commit 8e7fbcbc2
("sched: Remove stale power aware scheduling
remnants and dysfunctional knobs") made a boo-boo with removing the
power aware scheduling muck from the x86 topology bits.
We should unconditionally use the llc_shared mask for multi-core.
Reported-and-tested-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Borislav Petkov <bp@amd64.org>
Cc: Andreas Herrmann <andreas.herrmann3@amd.com>
Link: http://lkml.kernel.org/n/tip-lsksc2kfyeveb13avh327p0d@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
Родитель
731a7378b8
Коммит
9f646389aa
|
@ -410,15 +410,7 @@ void __cpuinit set_cpu_sibling_map(int cpu)
|
||||||
/* maps the cpu to the sched domain representing multi-core */
|
/* maps the cpu to the sched domain representing multi-core */
|
||||||
const struct cpumask *cpu_coregroup_mask(int cpu)
|
const struct cpumask *cpu_coregroup_mask(int cpu)
|
||||||
{
|
{
|
||||||
struct cpuinfo_x86 *c = &cpu_data(cpu);
|
return cpu_llc_shared_mask(cpu);
|
||||||
/*
|
|
||||||
* For perf, we return last level cache shared map.
|
|
||||||
* And for power savings, we return cpu_core_map
|
|
||||||
*/
|
|
||||||
if (!(cpu_has(c, X86_FEATURE_AMD_DCM)))
|
|
||||||
return cpu_core_mask(cpu);
|
|
||||||
else
|
|
||||||
return cpu_llc_shared_mask(cpu);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void impress_friends(void)
|
static void impress_friends(void)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче