Generic udelay() with watchdog support

According to the PPC reference implementation the udelay() function is
responsible for resetting the watchdog timer as frequently as needed.
Most other architectures do not meet that requirement, so long-running
operations might result in a watchdog reset.

This patch adds a generic udelay() function which takes care of
resetting the watchdog before calling an architecture-specific
__udelay().

Signed-off-by: Ingo van Lil <inguin@gmx.de>
This commit is contained in:
Ingo van Lil 2009-11-24 14:09:21 +01:00 committed by Wolfgang Denk
parent 1c409bc710
commit 3eb90bad65
47 changed files with 98 additions and 62 deletions

View file

@ -74,7 +74,7 @@ void putc (const char c)
ub_putc(c);
}
void udelay(unsigned long usec)
void __udelay(unsigned long usec)
{
ub_udelay(usec);
}