Messages in this thread | | | Date | Thu, 23 Apr 2015 09:10:57 -0400 | From | Steven Rostedt <> | Subject | Re: [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
| |