|
@@ -509,6 +509,14 @@ struct root_domain {
|
|
#ifdef CONFIG_SMP
|
|
#ifdef CONFIG_SMP
|
|
struct cpupri cpupri;
|
|
struct cpupri cpupri;
|
|
#endif
|
|
#endif
|
|
|
|
+#if defined(CONFIG_SCHED_MC) || defined(CONFIG_SCHED_SMT)
|
|
|
|
+ /*
|
|
|
|
+ * Preferred wake up cpu nominated by sched_mc balance that will be
|
|
|
|
+ * used when most cpus are idle in the system indicating overall very
|
|
|
|
+ * low system utilisation. Triggered at POWERSAVINGS_BALANCE_WAKEUP(2)
|
|
|
|
+ */
|
|
|
|
+ unsigned int sched_mc_preferred_wakeup_cpu;
|
|
|
|
+#endif
|
|
};
|
|
};
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -3384,6 +3392,10 @@ out_balanced:
|
|
|
|
|
|
if (this == group_leader && group_leader != group_min) {
|
|
if (this == group_leader && group_leader != group_min) {
|
|
*imbalance = min_load_per_task;
|
|
*imbalance = min_load_per_task;
|
|
|
|
+ if (sched_mc_power_savings >= POWERSAVINGS_BALANCE_WAKEUP) {
|
|
|
|
+ cpu_rq(this_cpu)->rd->sched_mc_preferred_wakeup_cpu =
|
|
|
|
+ first_cpu(group_leader->cpumask);
|
|
|
|
+ }
|
|
return group_min;
|
|
return group_min;
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|