[PATCH 15/21] staging: comedi/dawboard2000: use mdelay for large delays
H Hartley Sweeten
hartleys at visionengravers.com
Tue Apr 23 12:46:46 EDT 2013
On Tuesday, April 23, 2013 9:31 AM, Arnd Bergmann wrote:
> Subject: [PATCH 15/21] staging: comedi/dawboard2000: use mdelay for large delays
Nit.. Typo in subject.
> On ARM, it is not legal to pass values larger than 2ms into udelay(),
> and mdelay() must be used instead, to avoid this build error:
>
> ERROR: "__bad_udelay" [drivers/staging/comedi/drivers/daqboard2000.ko]
> undefined!
>
> On a related note, any use of mdelay() or large udelay() numbers should
> be carefully reviewed, and replaced with msleep() or a different
> implementation that does not rely on delaying the work.
>
> Signed-off-by: Arnd Bergmann <arnd at arndb.de>
> Cc: H Hartley Sweeten <hsweeten at visionengravers.com>
> Cc: Ian Abbott <abbotti at mev.co.uk>
> Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
Reviewed-by: H Hartley Sweeten <hsweeten at visionengravers.com>
Thanks,
Hartley
More information about the linux-arm-kernel
mailing list