]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] 3346/1: Fix udelay() for HZ values different from 100
authorPeter Teichmann <mail@peter-teichmann.de>
Mon, 20 Mar 2006 17:10:09 +0000 (17:10 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 21 Mar 2006 22:06:07 +0000 (22:06 +0000)
commitafa3420b31d6c01b010f53db2ed49c399b2854ba
tree27e2287ecc9b858089a667def26b7d9555212337
parent4b38cd6a917d92f0890b02391dd22f87de677cbe
[ARM] 3346/1: Fix udelay() for HZ values different from 100

Patch from Peter Teichmann

Currently, if the kernels HZ value is greater than 100, delays with the udelay function are too short. This can cause trouble for instance with the zd1201 usb wlan driver.

This patch suggests a solution that keeps the overhead small and maintains (hopefully) sufficient resolution.

Signed-off-by: Peter Teichmann
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/lib/delay.S
include/asm-arm/delay.h