xen/timer: re-introduce the inittodr call in the resume path
r298930 removed the inittodr call, but it seems like this prevents "calcru: runtime went backwards ..." messages from occasionally appearing when resuming from migration. Reported by: Karl Pielorz <kpielorz@tdx.co.uk> Sponsored by: Citrix Systems R&D
This commit is contained in:
parent
bbb19fc720
commit
b8d1a37638
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301742
@ -477,6 +477,9 @@ xentimer_resume(device_t dev)
|
|||||||
/* Reset the last uptime value */
|
/* Reset the last uptime value */
|
||||||
pvclock_resume();
|
pvclock_resume();
|
||||||
|
|
||||||
|
/* Reset the RTC clock */
|
||||||
|
inittodr(time_second);
|
||||||
|
|
||||||
/* Kick the timers on all CPUs */
|
/* Kick the timers on all CPUs */
|
||||||
smp_rendezvous(NULL, xentimer_percpu_resume, NULL, dev);
|
smp_rendezvous(NULL, xentimer_percpu_resume, NULL, dev);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user