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:
Roger Pau Monné 2016-06-09 16:15:01 +00:00
parent bbb19fc720
commit b8d1a37638
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301742

View File

@ -477,6 +477,9 @@ xentimer_resume(device_t dev)
/* Reset the last uptime value */
pvclock_resume();
/* Reset the RTC clock */
inittodr(time_second);
/* Kick the timers on all CPUs */
smp_rendezvous(NULL, xentimer_percpu_resume, NULL, dev);