[U-Boot-Users] [PATCH] lwmon5 watchdog: limit trigger rate

Stefan Roese sr at denx.de
Thu Apr 24 16:43:08 CEST 2008


On Tuesday 22 April 2008, Wolfgang Denk wrote:
> From: Yuri Tikhonov <yur at emcraft.com>
>
> Limit the rate of h/w watch-dog triggering on the LWMON5 board by
> the CONFIG_WD_MAX_RATE value.
>
> Note that an earlier version of this patch which used microseconds
> instead of ticks dis not work. The problem was that we used
> usec2ticks() to convert microseconds into ticks. usec2ticks() uses
> get_tbclk(), which in turn calls get_sys_info(). It turns out that
> this function does a lot of prolonged operations (like divisions)
> which take too much time so we do not trigger the watchdog in time,
> and it resets the system.
>
> Signed-off-by: Yuri Tikhonov <yur at emcraft.com>

Applied to u-boot-ppc4xx repository. Thanks.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================




More information about the U-Boot mailing list