lkml.org 
[lkml]   [2015]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v6 2/3] sched/rt: Fix wrong SMP scheduler behavior for equal prio cases
On Thu, 23 Apr 2015 14:53:27 +0800
pang.xunlei@zte.com.cn wrote:

> > Why not use Peter's idea of instead of checking PREEMPT_ACTIVE, just
> > check if the task is on the runqueue or not. If it scheduled out, it
> > would take itself off the runqueue, if it was preempted by anything, it
> > would still be on the run queue, and according to FIFO, it should still
> > maintain CPU ownership over other tasks of the same prio.
> >
>
> But for yield() or RR scheduling when running out of time slice,
> I think this would be still inappropriate, am I missing something?

Good point, I'll have to look into this a bit more.

-- Steve


\
 
 \ /
  Last update: 2015-04-23 15:21    [W:0.212 / U:0.908 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site