Skip to content

Instantly share code, notes, and snippets.

@pfactum
Created December 6, 2017 19:30
Show Gist options
  • Save pfactum/2a53896a7ec039cad3db8fc304b6291d to your computer and use it in GitHub Desktop.
Save pfactum/2a53896a7ec039cad3db8fc304b6291d to your computer and use it in GitHub Desktop.
diff --git a/kernel/sched/pds.c b/kernel/sched/pds.c
index 722f357a782b..b09ca71a90a1 100644
--- a/kernel/sched/pds.c
+++ b/kernel/sched/pds.c
@@ -6149,6 +6149,7 @@ static void sched_init_topology_cpumask(void)
#endif
sched_cpu_affinity_llc_end_masks[cpu] = chk;
+#ifdef CONFIG_SCHED_MC
/**
* Set up sd_llc_id per CPU
*/
@@ -6162,6 +6163,7 @@ static void sched_init_topology_cpumask(void)
cpumask_copy(chk, &tmp);
chk++;
}
+#endif
cpumask_complement(&tmp, topology_core_cpumask(cpu));
if (cpumask_and(&tmp, &tmp, cpu_online_mask)) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment