Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jun 2016 16:15:01 +0000 (UTC)
From:      =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= <royger@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r301742 - head/sys/dev/xen/timer
Message-ID:  <201606091615.u59GF1Ae041298@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: royger
Date: Thu Jun  9 16:15:01 2016
New Revision: 301742
URL: https://svnweb.freebsd.org/changeset/base/301742

Log:
  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

Modified:
  head/sys/dev/xen/timer/timer.c

Modified: head/sys/dev/xen/timer/timer.c
==============================================================================
--- head/sys/dev/xen/timer/timer.c	Thu Jun  9 16:05:56 2016	(r301741)
+++ head/sys/dev/xen/timer/timer.c	Thu Jun  9 16:15:01 2016	(r301742)
@@ -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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606091615.u59GF1Ae041298>