Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24919
b: refs/heads/master
c: e7c38cb
h: refs/heads/master
i:
  24917: 4e5ab33
  24915: 30a5205
  24911: a65db1d
v: v3
  • Loading branch information
Con Kolivas authored and Linus Torvalds committed Mar 31, 2006
1 parent 688a917 commit 335c527
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3dee386e14045484a6c41c8f03a263f9d79de740
refs/heads/master: e7c38cb49c6cc05bc11f70d9e9889da1c4a0d37f
16 changes: 8 additions & 8 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1273,18 +1273,18 @@ static int try_to_wake_up(task_t *p, unsigned int state, int sync)
* sleep_avg beyond just interactive state.
*/
p->sleep_type = SLEEP_NONINTERACTIVE;
}
} else

/*
* Tasks that have marked their sleep as noninteractive get
* woken up without updating their sleep average. (i.e. their
* sleep is handled in a priority-neutral manner, no priority
* boost and no penalty.)
* woken up with their sleep average not weighted in an
* interactive way.
*/
if (old_state & TASK_NONINTERACTIVE)
__activate_task(p, rq);
else
activate_task(p, rq, cpu == this_cpu);
if (old_state & TASK_NONINTERACTIVE)
p->sleep_type = SLEEP_NONINTERACTIVE;


activate_task(p, rq, cpu == this_cpu);
/*
* Sync wakeups (i.e. those types of wakeups where the waker
* has indicated that it will leave the CPU in short order)
Expand Down

0 comments on commit 335c527

Please sign in to comment.