Re: serialize access to ide device

From: Jens Axboe
Date: Mon Aug 02 2004 - 08:54:17 EST


On Mon, Aug 02 2004, Geert Uytterhoeven wrote:
> On Mon, 2 Aug 2004, Jens Axboe wrote:
> > + schedule_timeout(HZ/100);
>
> Hmm, we still have a few platforms where HZ < 100.
>
> Probably safer to use `schedule_timeout((HZ+99)/100);'?
>
> BTW, did anyone ever audit the kernel for such usages?

Good point, or perhaps just 1 instead.

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