The unified diff between revisions [9f05a1eb..] and [3dc5e7ac..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'watchdog.c'
# # old_revision [9f05a1eb606ea1c0421aa4a0b25b83b4fe4a20c8] # new_revision [3dc5e7ac4bcb952cc267892653dd78ed095d8778] # # patch "watchdog.c" # from [8398952deb37d8242fc858143c5e201321343c27] # to [d26ee7fc5e47c24a05fdd00cb771f966b4a87102] # ============================================================ --- watchdog.c 8398952deb37d8242fc858143c5e201321343c27 +++ watchdog.c d26ee7fc5e47c24a05fdd00cb771f966b4a87102 @@ -13,13 +13,13 @@ * now, something's gone horribly wrong. */ -#define WATCHDOG_TIMEOUT (100 * TIMER_MS) +#define WATCHDOG_TIMEOUT (100 * TIMER0_MS) static unsigned int watchdog_last_seen[WATCHDOG_MODULES]; void watchdog_kick(unsigned int module) { - if (module > WATCHDOG_MODULES) + if (module >= WATCHDOG_MODULES) return; watchdog_last_seen[module] = timer_read(); } @@ -30,7 +30,7 @@ void watchdog_check(void) int i; /* XXX not yet */ -/* return; */ + return; for (i = 0; i < WATCHDOG_MODULES; i++) { if ((signed int)(watchdog_last_seen[i] + WATCHDOG_TIMEOUT - time) < 0) {