Re: [PATCH] block core: use round_jiffies on timer to reducewakeups

From: Jens Axboe
Date: Wed Nov 11 2009 - 07:46:30 EST


On Tue, Nov 10 2009, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
>
> Use round_jiffies() variant to schedule the timer along with
> other timer wakeups on the same CPU.
>
> Source file also needs to include jiffies.h since it uses
> functions or macros from it.

round_jiffies() rounds to the next second, that's way too far away for
an event that should trigger within msecs.

--
Jens Axboe

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