From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Thu, 24 Apr 2008 16:43:08 +0200 Subject: [U-Boot-Users] [PATCH] lwmon5 watchdog: limit trigger rate In-Reply-To: <1208874293-2123-11-git-send-email-wd@denx.de> References: <1208874293-2123-1-git-send-email-wd@denx.de> <1208874293-2123-10-git-send-email-wd@denx.de> <1208874293-2123-11-git-send-email-wd@denx.de> Message-ID: <200804241643.08145.sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tuesday 22 April 2008, Wolfgang Denk wrote: > From: Yuri Tikhonov > > 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 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 =====================================================================