Re: Linux-Kernel Archive: No 100 HZ timer !

Pavel Machek (pavel@suse.cz)
Mon, 16 Apr 2001 15:32:18 +0000


Hi!

> /*
> * Timeouts for various operations:
> */
> #define WAIT_DRQ (5*HZ/100) /* 50msec - spec allows up to 20ms */
> #ifdef CONFIG_APM
> #define WAIT_READY (5*HZ) /* 5sec - some laptops are very slow */

Broken broken broken. CONFIG_APM has *nothing* to do with machine being laptop.
Think ACPI, think mips handheld. You should assume 5seconds, always.

-- 
Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt,
details at http://atrey.karlin.mff.cuni.cz/~pavel/velo/index.html.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/