lkml.org 
[lkml]   [2010]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC][PATCH 05/22] sched: SCHED_DEADLINE policy implementation
From
Date
On Fri, 2010-10-29 at 08:30 +0200, Raistlin wrote:
> +static void check_preempt_curr_dl(struct rq *rq, struct task_struct *p,
> + int flags)
> +{
> + if (!dl_task(rq->curr) || (dl_task(p) &&
> + dl_time_before(p->dl.deadline, rq->curr->dl.deadline)))
> + resched_task(rq->curr);
> +}

every moment now a patch will hit -tip that ensures
->check_preempt_curr() is only called when both the current and waking
task belong to the same sched_class.


\
 
 \ /
  Last update: 2010-11-11 15:27    [W:0.293 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site