[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200608221622.43244.vda.linux@googlemail.com>
Date: Tue, 22 Aug 2006 16:22:43 +0200
From: Denis Vlasenko <vda.linux@...glemail.com>
To: linux-kernel@...r.kernel.org, Andrew Morton <akpm@...l.org>
Subject: [PATCH 3/3] add generic udelay(), mdelay() and ssleep()
On Tuesday 22 August 2006 15:51, Denis Vlasenko wrote:
> > A few arch files won't see the definition of udelay()
> > in asm/delay.h anymore. Prevent that from biting us later.
>
> We are going to kill MAX_UDELAY_MS, so replace it
> in common code with 1. Also fix a buglet on the way:
> mpc83xx_spi->nsecs > MAX_UDELAY_MS * 1000
> was comparing nanoseconds to microseconds.
This patch does the following:
* make it so than asm/delay.h does not define udelay(),
only __udelay(), to be used in generic udelay()
* add generic udelay() which calls __udelay() repeatedly,
as needed. Protect against overflow in udelay() argument.
* similarly for mdelay() and ssleep()
* __const_udelay for all arches is removed or renamed to
__const_delay (it did not do microsecond delays anyway)
if still used by arch ndelay() function/macro
* remove EXPORT_SYMBOL(__udelay). It is not used in modules
anymore
* remove MAX_UDELAY_MS
We specifically do not touch ndelay() in thess patches.
It is not changed.
Signed-off-by: Denis Vlasenko <vda.linux@...glemail.com>
--
vda
View attachment "delay_new7.3.patch" of type "text/x-diff" (33760 bytes)
Powered by blists - more mailing lists