lkml.org 
[lkml]   [2008]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] sched: call resched_task() conditionally from new task wake up path.

* Bharata B Rao <bharata@linux.vnet.ibm.com> wrote:

> Hi,
>
> 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.
>
> Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>

well spotted - applied to tip/sched/devel, thanks Bharata.

Ingo


\
 
 \ /
  Last update: 2008-08-28 11:29    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site