Re: [PATCH v2] use round_jiffies() for slow work thread pool's 5 second cull timer

From: Chris Peterson
Date: Wed May 13 2009 - 12:31:45 EST


>> This is a revised patch to round the slow work queue's 5 second timers to
>> whole seconds with round_jiffies().
>
> Why? ÂYour patch description doesn't say.
>

oops, good question. round_jiffies is useful for timers for which the
exact time they fire does not matter too much, as long as they fire
approximately every X seconds.

By rounding non-time-critical timers to whole seconds, all such timers
will be batched up to fire at the same time, rather than at various
times spread out. The goal of this is to have the CPU wake up less,
which saves power.

chris
--
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/