mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-03 18:29:36 +00:00
[POWERPC] spu sched: ensure preempted threads are put back on the runqueue, part2
To not lose a spu thread we need to make sure it always gets put back on the runqueue. In find_victim aswell as in the scheduler tick as done in the previous patch. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
This commit is contained in:
parent
b3e76cc324
commit
e097b51328
1 changed files with 6 additions and 0 deletions
|
@ -391,6 +391,12 @@ static struct spu *find_victim(struct spu_context *ctx)
|
|||
}
|
||||
spu_unbind_context(spu, victim);
|
||||
mutex_unlock(&victim->state_mutex);
|
||||
/*
|
||||
* We need to break out of the wait loop in spu_run
|
||||
* manually to ensure this context gets put on the
|
||||
* runqueue again ASAP.
|
||||
*/
|
||||
wake_up(&victim->stop_wq);
|
||||
return spu;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue