]> err.no Git - linux-2.6/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)
commit6d4518d76f9612d580f9423cc0c3364a06b69588
tree27e2287ecc9b858089a667def26b7d9555212337
parent0328ad23cfd8a0501f44a1b83e49d5b0e47e2b3c
[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