Add samsung specific changes
This commit is contained in:
@@ -75,6 +75,8 @@ static void reboot_work_fn(struct work_struct *unused)
|
||||
kthread_run(reboot_kthread_fn, NULL, "softdog_reboot");
|
||||
}
|
||||
|
||||
static struct watchdog_device softdog_dev;
|
||||
|
||||
static enum hrtimer_restart softdog_fire(struct hrtimer *timer)
|
||||
{
|
||||
static bool soft_reboot_fired;
|
||||
@@ -84,7 +86,7 @@ static enum hrtimer_restart softdog_fire(struct hrtimer *timer)
|
||||
pr_crit("Triggered - Reboot ignored\n");
|
||||
} else if (soft_panic) {
|
||||
pr_crit("Initiating panic\n");
|
||||
panic("Software Watchdog Timer expired");
|
||||
panic("Software Watchdog Timer expired %ds", softdog_dev.timeout);
|
||||
} else {
|
||||
pr_crit("Initiating system reboot\n");
|
||||
if (!soft_reboot_fired && soft_reboot_cmd != NULL) {
|
||||
@@ -121,8 +123,6 @@ static enum hrtimer_restart softdog_fire(struct hrtimer *timer)
|
||||
return HRTIMER_NORESTART;
|
||||
}
|
||||
|
||||
static struct watchdog_device softdog_dev;
|
||||
|
||||
static enum hrtimer_restart softdog_pretimeout(struct hrtimer *timer)
|
||||
{
|
||||
watchdog_notify_pretimeout(&softdog_dev);
|
||||
|
Reference in New Issue
Block a user