diff options
author | Simon Glass <sjg@chromium.org> | 2012-12-13 20:49:03 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-02-04 09:05:44 -0500 |
commit | a0d3c820c43e040b001c912a717942219e0fe3ab (patch) | |
tree | 28c16048e84859b89ab131ee69b82b62468b83e5 /board/lwmon5 | |
parent | 923a662f2fb09aa67c1ec0de25474c218fad2690 (diff) | |
download | u-boot-imx-a0d3c820c43e040b001c912a717942219e0fe3ab.zip u-boot-imx-a0d3c820c43e040b001c912a717942219e0fe3ab.tar.gz u-boot-imx-a0d3c820c43e040b001c912a717942219e0fe3ab.tar.bz2 |
ppc: Move wdt_last to arch_global_data
Move this field into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/lwmon5')
-rw-r--r-- | board/lwmon5/lwmon5.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/board/lwmon5/lwmon5.c b/board/lwmon5/lwmon5.c index ecd9536..29e24fb 100644 --- a/board/lwmon5/lwmon5.c +++ b/board/lwmon5/lwmon5.c @@ -357,16 +357,16 @@ void hw_watchdog_reset(void) * Don't allow watch-dog triggering more frequently than * the predefined value CONFIG_WD_MAX_RATE [ticks]. */ - if (ct >= gd->wdt_last) { - if ((ct - gd->wdt_last) < CONFIG_WD_MAX_RATE) + if (ct >= gd->arch.wdt_last) { + if ((ct - gd->arch.wdt_last) < CONFIG_WD_MAX_RATE) return; } else { /* Time base counter had been reset */ - if (((unsigned long long)(-1) - gd->wdt_last + ct) < + if (((unsigned long long)(-1) - gd->arch.wdt_last + ct) < CONFIG_WD_MAX_RATE) return; } - gd->wdt_last = get_ticks(); + gd->arch.wdt_last = get_ticks(); #endif /* |