void *data);
/* Enables a watchdog and resets its timer. */
+void lc_watchdog_touch_ms(struct lc_watchdog *lcw, int timeout_ms);
void lc_watchdog_touch(struct lc_watchdog *lcw);
/* Disable a watchdog; touch it to restart it. */
lcw->lcw_last_touched = newtime;
}
-void lc_watchdog_touch(struct lc_watchdog *lcw)
+void lc_watchdog_touch_ms(struct lc_watchdog *lcw, int timeout_ms)
{
ENTRY;
LASSERT(lcw != NULL);
lcw_update_time(lcw, "touched");
lcw->lcw_state = LC_WATCHDOG_ENABLED;
- mod_timer(&lcw->lcw_timer, jiffies + lcw->lcw_time);
+ mod_timer(&lcw->lcw_timer, jiffies +
+ cfs_time_seconds(timeout_ms) / 1000);
EXIT;
}
+EXPORT_SYMBOL(lc_watchdog_touch_ms);
+
+/* deprecated - use above instead */
+void lc_watchdog_touch(struct lc_watchdog *lcw)
+{
+ lc_watchdog_touch_ms(lcw, cfs_duration_sec(lcw->lcw_time) * 1000);
+}
EXPORT_SYMBOL(lc_watchdog_touch);
void lc_watchdog_disable(struct lc_watchdog *lcw)
}
EXPORT_SYMBOL(lc_watchdog_add);
+void lc_watchdog_touch_ms(struct lc_watchdog *lcw, int timeout_ms)
+{
+}
+EXPORT_SYMBOL(lc_watchdog_touch_ms);
+
void lc_watchdog_touch(struct lc_watchdog *lcw)
{
}