Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125379
b: refs/heads/master
c: 7a09b1a
h: refs/heads/master
i:
  125377: 5167f85
  125375: ba54daf
v: v3
  • Loading branch information
Vaidyanathan Srinivasan authored and Ingo Molnar committed Dec 19, 2008
1 parent 57f9c88 commit b4d88b3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d5679bd11916eba5c8ee9033003e1a5ce56ece9a
refs/heads/master: 7a09b1a27b1e5a4957e4af9951420fea02c44fba
12 changes: 12 additions & 0 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,14 @@ struct root_domain {
#ifdef CONFIG_SMP
struct cpupri cpupri;
#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
};

/*
Expand Down Expand Up @@ -3384,6 +3392,10 @@ find_busiest_group(struct sched_domain *sd, int this_cpu,

if (this == group_leader && group_leader != group_min) {
*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;
}
#endif
Expand Down

0 comments on commit b4d88b3

Please sign in to comment.