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

From: Peter Zijlstra
Date: Wed Dec 08 2010 - 15:05:25 EST


On Wed, 2010-12-08 at 21:00 +0100, Peter Zijlstra wrote:
> + lag0 = avg_vruntime(cfs_rq_of(se));
> + p_lag0 = avg_vruntime(cfs_rq_of(p_se));
> +
> + lag = se->vruntime - avg_vruntime(cfs_rq);
> + p_lag = p_se->vruntime - avg_vruntime(p_cfs_rq);
> +
> + if (p_lag > lag) { /* if P is owed less service */
> + se->vruntime = lag0 + p_lag;
> + p_se->vruntime = p_lag + lag;
> + }

clearly that should read:

p_se->vruntime = p_lag0 + lag;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/