summaryrefslogtreecommitdiff
path: root/include/watchdog.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-10-30 12:16:54 -0700
committerGerrit <chrome-bot@google.com>2012-10-30 15:33:24 -0700
commit8b3a242ff0b8398b37378c67fe2c63beec1fa827 (patch)
treebb647b1ae48da03ccdb8efb290add7575145f691 /include/watchdog.h
parenta21ea56e76ff71849d45f59608c0beb7bede4c02 (diff)
downloadchrome-ec-8b3a242ff0b8398b37378c67fe2c63beec1fa827.tar.gz
Watchdog is reloaded by HOOK_TICK, not its own task
This reduces memory footprint. BUG=chrome-os-partner:15714 BRANCH=none TEST=system still boots; 'waitms 1500' prints watchdog error dump Change-Id: Ieb0248a34655514b03d919cc36c2b369691da716 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/36937 Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/watchdog.h')
-rw-r--r--include/watchdog.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/include/watchdog.h b/include/watchdog.h
index 46f3b996d7..ca88094e6a 100644
--- a/include/watchdog.h
+++ b/include/watchdog.h
@@ -8,16 +8,15 @@
#ifndef __CROS_EC_WATCHDOG_H
#define __CROS_EC_WATCHDOG_H
-#define WATCHDOG_PERIOD_MS 1100 /* Watchdog period in ms */
+/* Watchdog period in ms; must be at least twice HOOK_TICK_INTERVAL */
+#define WATCHDOG_PERIOD_MS 1100
-/*
- * Interval in ms between reloads of the watchdog timer. Should be less
- * than half of the watchdog period.
+/**
+ * Initialize the watchdog.
+ *
+ * This will cause the CPU to reboot if it has been more than 2 watchdog
+ * periods since watchdog_reload() has been called.
*/
-#define WATCHDOG_RELOAD_MS 500
-
-/* Initialize the watchdog. This will cause the CPU to reboot if it has been
- * more than 2 watchdog periods since watchdog_reload() has been called. */
int watchdog_init(void);
/**