mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
sched: Fix hotplug hang
The hot-unplug kstopmachine usage does a wakeup after deactivating the cpu, hence we cannot use cpu_active() here but must rely on the good olde online. Reported-by: Sachin Sant <[email protected]> Reported-by: Jens Axboe <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Tested-by: Jens Axboe <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> LKML-Reference: <1261326987.4314.24.camel@laptop> Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
3df0fc5b2e
commit
70f1120527
1 changed files with 1 additions and 1 deletions
|
|
@ -2346,7 +2346,7 @@ int select_task_rq(struct task_struct *p, int sd_flags, int wake_flags)
|
|||
* not worry about this generic constraint ]
|
||||
*/
|
||||
if (unlikely(!cpumask_test_cpu(cpu, &p->cpus_allowed) ||
|
||||
!cpu_active(cpu)))
|
||||
!cpu_online(cpu)))
|
||||
cpu = select_fallback_rq(task_cpu(p), p);
|
||||
|
||||
return cpu;
|
||||
|
|
|
|||
Loading…
Reference in a new issue