diff options
| author | Srivatsa Vaddagiri <vatsa@codeaurora.org> | 2014-08-07 21:01:46 +0530 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:00:18 -0700 |
| commit | 778ce1a13c3f199fc44c53078fc2419075b9a0b8 (patch) | |
| tree | c6e519297178eec151bf7d2b6405ec9ccb545f48 /include/trace | |
| parent | 35e98218fd1d081a0081a0a6e73847f54e4b5307 (diff) | |
sched: Fix possibility of "stuck" reserved flag
check_for_migration() could mark a thread for migration (in
rq->push_task) and invoke active_load_balance_cpu_stop(). However that
thread could get migrated to another cpu by the time
active_load_balance_cpu_stop() runs, which could fail to clear
reserved flag for a cpu and drop task_sruct reference when cpu has
only one task (stopper thread running
active_load_balance_cpu_stop()). This would cause a cpu to have
reserved bit stuck, which prevents it from being used effectively.
Fix this by having active_load_balance_cpu_stop() drop reserved bit
always.
Change-Id: I2464a46b4ddb52376a95518bcc95dd9768e891f9
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
[rameezmustafa@codeaurora.org]: Port to msm-3.18]
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org
Diffstat (limited to 'include/trace')
0 files changed, 0 insertions, 0 deletions
