From: Vitaly Wool Date: Mon, 11 Sep 2006 10:42:39 +0000 (+0400) Subject: [WATCHDOG] pnx4008: add cpu_relax() X-Git-Tag: v3.12-rc1~33142^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65a64ec3b4fc904932b832c53e5a86d56b972682;p=kernel%2Fkernel-generic.git [WATCHDOG] pnx4008: add cpu_relax() Added cpu_relax as suggested by Alan Cox. Signed-off-by: Vitaly Wool Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/char/watchdog/pnx4008_wdt.c b/drivers/char/watchdog/pnx4008_wdt.c index 359168e..e7f0450 100644 --- a/drivers/char/watchdog/pnx4008_wdt.c +++ b/drivers/char/watchdog/pnx4008_wdt.c @@ -104,7 +104,8 @@ static void wdt_enable(void) /* stop counter, initiate counter reset */ __raw_writel(RESET_COUNT, WDTIM_CTRL(wdt_base)); /*wait for reset to complete. 100% guarantee event */ - while (__raw_readl(WDTIM_COUNTER(wdt_base))); + while (__raw_readl(WDTIM_COUNTER(wdt_base))) + cpu_relax(); /* internal and external reset, stop after that */ __raw_writel(M_RES2 | STOP_COUNT0 | RESET_COUNT0, WDTIM_MCTRL(wdt_base));