/* sh_wdt_set_heartbeat - Set the Userspace Watchdog heartbeat Set the Userspace Watchdog heartbeat  */
static int sh_wdt_set_heartbeat(int t)
/* sh_wdt_set_heartbeat - Set the Userspace Watchdog heartbeat Set the Userspace Watchdog heartbeat  */
static int sh_wdt_set_heartbeat(int t)
{
	unsigned long flags;
	if (unlikely(t < 1 || t > 3600))
		return -EINVAL;
	spin_lock_irqsave(&shwdt_lock, flags);
	heartbeat = t;
	spin_unlock_irqrestore(&shwdt_lock, flags);
	return 0;
}