Bogus usage of HZ in cfi_cmdset_0001.c

Guennadi Liakhovetski gl at dsa-ac.de
Mon Jul 16 08:58:57 EDT 2007


On Thu, 5 Jul 2007, Nicolas Pitre wrote:

> Let's see.
> 
> drivers/mtd/chips/cfi_cmdset_0001.c from line 1029:
> 
> |                } else if (usec >= 1000000/HZ) {
> |                        /*
> |                         * Try to save on CPU power when waiting delay
> |                         * is at least a system timer tick period.
> |                         * No need to be extremely accurate here.
> |                         */
> |                        xip_cpu_idle();
> 
> The important clue here is: "at least a system timer tick period".

[snip]

Thanks for explaning, Nicolas.

Guennadi
---------------------------------
Guennadi Liakhovetski, Ph.D.
DSA Daten- und Systemtechnik GmbH
Pascalstr. 28
D-52076 Aachen
Germany



More information about the linux-mtd mailing list