summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPrasad Sodagudi <psodagud@codeaurora.org>2014-07-05 13:08:54 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 19:59:50 -0700
commitc4529b59bc9fcf2dd01d1689aa6c7f4794caa969 (patch)
treeef2e3416b1cce6765b336e0c485157d02281a5ad /include/linux
parent3e7b06d9cf3dc7c542f57c59887f8632e70635d0 (diff)
sched: avoid pushing tasks to an offline CPU
Currently active_load_balance_cpu_stop is run by cpu stopper and it pushes running tasks off the busiest CPU onto idle target CPU. But there is no check to see whether target cpu is offline or not before pushing the tasks. With the introduction of active migration in the scheduler tick path (see check_for_migration()) there have been instances of attempts to migrate tasks to offline CPUs. Add a check as to whether the target cpu is online or not to prevent scheduling on offline CPUs. Change-Id: Ib8ac7f8aeabd3ca7365f3eae977075952dab4f21 Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org> [rameezmustafa@codeaurora.org]: Port to msm-3.18] Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions