Re: [RFC -v2 PATCH 2/3] sched: add yield_to function

Avi Kivity
2010-12-20T10:49:59Z

On 12/20/2010 12:46 PM, Mike Galbraith wrote:
> >
> > However, if I'm all alone on my cpu, and the other task is runnable but
> > not running, behind some unrelated task, then I do need that task to be
> > preempted (or to move tasks around).
>
> So in that case, a pull may be advantageous.

Yes.

> > > Would a kick/hint option be useful?
> >
> > Depends on what it does...
>
> Let you decide whether you only want to drop a hint and leave it at
> that, or also attempt a preemption.

Who is "you" in this? the scheduler?

I'm fine with hints so long as they are usually acted upon (if it isn't,
I'll go back to the guest, spin a bit more, and retry).

--
error compiling committee.c: too many arguments to function