Re: dynamic-hz

From: Andrea Arcangeli
Date: Mon Dec 13 2004 - 08:06:52 EST


On Mon, Dec 13, 2004 at 01:51:11PM +0100, Hans Kristian Rosbach wrote:
> then in the rest of the code we can use ex:
> schedule_timeout(varX*100) for 100ms no matter what hz is.

There's not real difference between a multiplication or a division,
and for either cases it doesn't worth to optimize such usage IMHO. I
believe the only real cost is the cacheline anyway.
-
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/