diff options
author | Simon Glass <sjg@chromium.org> | 2012-06-03 07:33:17 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-06-15 13:39:22 -0700 |
commit | 9f2e621d8032199b727918f04430d5cd0951c0c3 (patch) | |
tree | 2adfa391c2fedad7ab015a0d59cddeec0a0c4dcd /include/watchdog.h | |
parent | 9c08e8994e8e09709b096a7e6f1cb17faa0ce52c (diff) | |
download | chrome-ec-9f2e621d8032199b727918f04430d5cd0951c0c3.tar.gz |
Move watchdog_trace() into the generic watchdog file
We want this function to be available for all chips, so move it into a
generic place.
The task_disable_irq() from the LM4 version can be left in
watchdog_check(), to keep the watchdog_trace() function generic.
BUG=chrome-os-partner:10145
TEST=build for all boards
Change-Id: I98c60ce5958f1498b84a233ef04290a68a7838c5
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/24397
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/watchdog.h')
-rw-r--r-- | include/watchdog.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/watchdog.h b/include/watchdog.h index b4d0a1e2f6..46f3b996d7 100644 --- a/include/watchdog.h +++ b/include/watchdog.h @@ -20,6 +20,18 @@ * more than 2 watchdog periods since watchdog_reload() has been called. */ int watchdog_init(void); +/** + * Display a trace with information about an expired watchdog timer + * + * This shows the location in the code where the expiration happened. + * Usually this helps locate a loop which is blocking execution of the + * watchdog task. + * + * @param excep_lr Value of lr to indicate caller return + * @param excep_sp Value of sp to indicate caller task id + */ +void watchdog_trace(uint32_t excep_lr, uint32_t excep_sp); + /* Reload the watchdog counter */ void watchdog_reload(void); |