mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
x86: Fix time_resume() to notify all domains of wallclock change.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
228dadc99a
commit
f64134cdb8
1 file changed
+2
-4
+2
-4
@@ -957,14 +957,12 @@ int time_suspend(void)
|
||||
|
||||
int time_resume(void)
|
||||
{
|
||||
u64 now_sec, tmp = init_pit_and_calibrate_tsc();
|
||||
u64 tmp = init_pit_and_calibrate_tsc();
|
||||
|
||||
set_time_scale(&this_cpu(cpu_time).tsc_scale, tmp);
|
||||
|
||||
resume_platform_timer();
|
||||
now_sec = read_platform_stime();
|
||||
do_div(now_sec, SECONDS(1));
|
||||
wc_sec = get_cmos_time() - now_sec;
|
||||
do_settime(get_cmos_time(), 0, read_platform_stime());
|
||||
|
||||
init_percpu_time();
|
||||
|
||||
|
||||