Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1300b4c9 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: watchdog-v2: Update last_pet during the suspend and resume"

parents dbba1a85 40bd1e7d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -106,6 +106,7 @@ static int msm_watchdog_suspend(struct device *dev)
	__raw_writel(0, wdog_dd->base + WDT0_EN);
	mb();
	wdog_dd->enabled = false;
	wdog_dd->last_pet = sched_clock();
	return 0;
}

@@ -119,6 +120,7 @@ static int msm_watchdog_resume(struct device *dev)
	__raw_writel(1, wdog_dd->base + WDT0_RST);
	mb();
	wdog_dd->enabled = true;
	wdog_dd->last_pet = sched_clock();
	return 0;
}