[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1294247065.2016.267.camel@laptop>
Date: Wed, 05 Jan 2011 18:04:25 +0100
From: Peter Zijlstra <a.p.zijlstra@...llo.nl>
To: Mike Galbraith <efault@....de>
Cc: Rik van Riel <riel@...hat.com>, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org, Avi Kiviti <avi@...hat.com>,
Srivatsa Vaddagiri <vatsa@...ux.vnet.ibm.com>,
Chris Wright <chrisw@...s-sol.org>
Subject: Re: [RFC -v3 PATCH 2/3] sched: add yield_to function
On Wed, 2011-01-05 at 17:57 +0100, Mike Galbraith wrote:
> + p_cfs_rq = cfs_rq_of(pse);
> + local = 1;
> + }
> +#endif
> +
> + /* Tell the scheduler that we'd really like pse to run next. */
> + p_cfs_rq->next = pse;
> +
> + /* We know whether we want to preempt or not, but are we allowed? */
> + preempt &= same_thread_group(p, task_of(p_cfs_rq->curr));
> +
> + if (local)
> + clear_buddies(cfs_rq, se);
You might want to clear before setting next :-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists