Generic udelay() with watchdog support
authorIngo van Lil <inguin@gmx.de>
Tue, 24 Nov 2009 13:09:21 +0000 (14:09 +0100)
committerWolfgang Denk <wd@denx.de>
Sat, 5 Dec 2009 00:08:53 +0000 (01:08 +0100)
commit3eb90bad651fab39cffba750ec4421a9c01d60e7
tree63b21148a041603db252203a422dc465e862e016
parent1c409bc7101a24ecd47a13a4e851845d66dc23ce
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>
47 files changed:
board/armltd/integrator/timer.c
board/freescale/mpc8313erdb/sdram.c
cpu/arm1136/mx31/timer.c
cpu/arm1136/omap24xx/timer.c
cpu/arm1176/s3c64xx/timer.c
cpu/arm720t/interrupts.c
cpu/arm920t/at91rm9200/timer.c
cpu/arm920t/imx/timer.c
cpu/arm920t/ks8695/timer.c
cpu/arm920t/s3c24x0/timer.c
cpu/arm925t/timer.c
cpu/arm926ejs/at91/timer.c
cpu/arm926ejs/davinci/timer.c
cpu/arm926ejs/kirkwood/timer.c
cpu/arm926ejs/mx27/timer.c
cpu/arm926ejs/nomadik/timer.c
cpu/arm926ejs/omap/timer.c
cpu/arm926ejs/versatile/timer.c
cpu/arm_cortexa8/omap3/timer.c
cpu/arm_cortexa8/s5pc1xx/timer.c
cpu/at32ap/interrupts.c
cpu/blackfin/interrupts.c
cpu/i386/sc520/sc520_timer.c
cpu/ixp/start.S
cpu/ixp/timer.c
cpu/lh7a40x/timer.c
cpu/mcf547x_8x/slicetimer.c
cpu/pxa/timer.c
cpu/s3c44b0/timer.c
cpu/sa1100/timer.c
examples/api/Makefile
examples/api/libgenwrap.c
include/asm-blackfin/delay.h
include/common.h
include/exports.h
lib_generic/Makefile
lib_generic/time.c [new file with mode: 0644]
lib_i386/pcat_timer.c
lib_m68k/time.c
lib_microblaze/time.c
lib_mips/time.c
lib_nios/time.c
lib_nios2/time.c
lib_ppc/time.c
lib_sh/time.c
lib_sh/time_sh2.c
lib_sparc/time.c