On 09/12/2011 06:10 AM, Greg Lee wrote: > Add WDIOC_GETTIMELEFT ioctl allowing you to check how much time is left > on the watchdog counter before a reset occurs. > > Signed-off-by: Greg Lee <glee [at] swspec.com> > > --- > --- linux-3.1-rc5.orig/drivers/watchdog/w83627hf_wdt.c > +++ linux-3.1-rc5.mine/drivers/watchdog/w83627hf_wdt.c > @@ -176,6 +176,23 @@ static int wdt_set_heartbeat(int t) > return 0; > } > > +static int wdt_get_time_left(void){ Thanks for this. Please put the { on the next line. s/wdt_ctrl/wdt_set_time/ s/wdt_get_time_left/wdt_get_time/ cheers, Pádraig. -- To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html