mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[PATCH] sched: include noninteractive sleep in idle detect
Tasks waiting in SLEEP_NONINTERACTIVE state can now get to best priority so they need to be included in the idle detection code. Signed-off-by: Con Kolivas <[email protected]> Acked-by: Ingo Molnar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
e72ff0bb2c
commit
5138930e6a
1 changed files with 1 additions and 2 deletions
|
|
@ -705,8 +705,7 @@ static int recalc_task_prio(task_t *p, unsigned long long now)
|
|||
* active yet prevent them suddenly becoming cpu hogs and
|
||||
* starving other processes.
|
||||
*/
|
||||
if (p->mm && p->sleep_type != SLEEP_NONINTERACTIVE &&
|
||||
sleep_time > INTERACTIVE_SLEEP(p)) {
|
||||
if (p->mm && sleep_time > INTERACTIVE_SLEEP(p)) {
|
||||
unsigned long ceiling;
|
||||
|
||||
ceiling = JIFFIES_TO_NS(MAX_SLEEP_AVG -
|
||||
|
|
|
|||
Loading…
Reference in a new issue