Add samsung specific changes

This commit is contained in:
2025-08-11 14:29:00 +02:00
parent c66122e619
commit 4d134a1294
2688 changed files with 1127995 additions and 11475 deletions

View File

@@ -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);