forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commit3273163
sched/fair: Let asymmetric CPU configurations balance at wake-up
Currently, SD_WAKE_AFFINE always takes priority over wakeup balancing ifSD_BALANCE_WAKE is set on the sched_domains. For asymmetricconfigurations SD_WAKE_AFFINE is only desirable if the waking task'scompute demand (utilization) is suitable for the waking CPU and theprevious CPU, and all CPUs within their respectiveSD_SHARE_PKG_RESOURCES domains (sd_llc). If not, let wakeup balancingtake over (find_idlest_{group, cpu}()).This patch makes affine wake-ups conditional on whether both the wakerCPU and the previous CPU has sufficient capacity for the waking task,or not, assuming that the CPU capacities within an SD_SHARE_PKG_RESOURCESdomain (sd_llc) are homogeneous.Signed-off-by: Morten Rasmussen <morten.rasmussen@arm.com>Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>Acked-by: Vincent Guittot <vincent.guittot@linaro.org>Cc: Linus Torvalds <torvalds@linux-foundation.org>Cc: Mike Galbraith <efault@gmx.de>Cc: Peter Zijlstra <peterz@infradead.org>Cc: Thomas Gleixner <tglx@linutronix.de>Cc: dietmar.eggemann@arm.comCc: freedom.tan@mediatek.comCc: keita.kobayashi.ym@renesas.comCc: mgalbraith@suse.deCc: sgurrappadi@nvidia.comCc: yuyang.du@intel.comLink:http://lkml.kernel.org/r/1469453670-2660-10-git-send-email-morten.rasmussen@arm.comSigned-off-by: Ingo Molnar <mingo@kernel.org>1 parentcd92bfd commit3273163
1 file changed
+34
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
117 | 123 | | |
118 | 124 | | |
119 | 125 | | |
| |||
5376 | 5382 | | |
5377 | 5383 | | |
5378 | 5384 | | |
| 5385 | + | |
| 5386 | + | |
| 5387 | + | |
| 5388 | + | |
| 5389 | + | |
| 5390 | + | |
| 5391 | + | |
| 5392 | + | |
| 5393 | + | |
| 5394 | + | |
| 5395 | + | |
| 5396 | + | |
| 5397 | + | |
| 5398 | + | |
| 5399 | + | |
| 5400 | + | |
| 5401 | + | |
| 5402 | + | |
| 5403 | + | |
| 5404 | + | |
| 5405 | + | |
| 5406 | + | |
| 5407 | + | |
| 5408 | + | |
| 5409 | + | |
| 5410 | + | |
5379 | 5411 | | |
5380 | 5412 | | |
5381 | 5413 | | |
| |||
5399 | 5431 | | |
5400 | 5432 | | |
5401 | 5433 | | |
5402 | | - | |
| 5434 | + | |
| 5435 | + | |
5403 | 5436 | | |
5404 | 5437 | | |
5405 | 5438 | | |
| |||
0 commit comments
Comments
(0)