summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorBharata B Rao <bharata@linux.vnet.ibm.com>2008-08-28 14:42:49 +0530
committerIngo Molnar <mingo@elte.hu>2008-08-28 11:35:51 +0200
commitaec0a5142cb52aaa152d962d84a838e25d520742 (patch)
tree8cf21e8fd5c5bc513923fd38acfc562ae0ab39d1 /usr
parent65eb3dc609dec17deea48dcd4de2e549d29a9824 (diff)
sched: call resched_task() conditionally from new task wake up path
- During wake up of a new task, task_new_fair() can do a resched_task() on the current task. Later in the code path, check_preempt_curr() also ends up doing the same, which can be avoided. Check if TIF_NEED_RESCHED is already set for the current task. - task_new_fair() does a resched_task() on the current task unconditionally. This can be done only in case when child runs before the parent. So this is a small speedup. Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions