Commit 65a64ec3 authored by Vitaly Wool's avatar Vitaly Wool Committed by Wim Van Sebroeck

[WATCHDOG] pnx4008: add cpu_relax()

Added cpu_relax as suggested by Alan Cox.
Signed-off-by: default avatarVitaly Wool <vitalywool@gmail.com>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 99d2853a
...@@ -104,7 +104,8 @@ static void wdt_enable(void) ...@@ -104,7 +104,8 @@ static void wdt_enable(void)
/* stop counter, initiate counter reset */ /* stop counter, initiate counter reset */
__raw_writel(RESET_COUNT, WDTIM_CTRL(wdt_base)); __raw_writel(RESET_COUNT, WDTIM_CTRL(wdt_base));
/*wait for reset to complete. 100% guarantee event */ /*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 */ /* internal and external reset, stop after that */
__raw_writel(M_RES2 | STOP_COUNT0 | RESET_COUNT0, __raw_writel(M_RES2 | STOP_COUNT0 | RESET_COUNT0,
WDTIM_MCTRL(wdt_base)); WDTIM_MCTRL(wdt_base));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment