On Thu, 23 Apr 2015 14:53:27 +0800
pang.xun...@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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to