OSDN Git Service

watchdog: Add watchdog_active() routine
authorViresh Kumar <viresh.kumar@st.com>
Mon, 12 Mar 2012 04:21:56 +0000 (09:51 +0530)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 30 May 2012 05:53:46 +0000 (07:53 +0200)
commit257f8c4aae392654d4ab846030b9f4518f16ed32
tree54b97861301fa1097126f9d6d42633e835adff72
parent09a46e739780aab2eadf47afdefa70c9cd69d83d
watchdog: Add watchdog_active() routine

Some watchdog may need to check if watchdog is ACTIVE or not, for example in
their suspend/resume hooks.

This patch adds this routine and changes the core drivers to use it.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/via_wdt.c
drivers/watchdog/watchdog_dev.c
include/linux/watchdog.h