Re: [patch 4/7] sched: convert rq->avg_idle to rq->avg_event

From: Peter Zijlstra
Date: Wed Nov 23 2011 - 06:55:38 EST


On Tue, 2011-11-22 at 15:22 +0100, Mike Galbraith wrote:
> We update rq->clock only at points of interest to the scheduler.
> Using this distance has the same effect as measuring idle time
> for idle_balance() throttling, and allows other uses as well.

I'm not sure I follow, suppose we're happily context switching away, how
is the avg distance between context switches related to idle time?
--
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/