xen/pvclock: set the correct resolution for the Xen PV clock

The Xen PV clock has a resolution of 1ns, so set the resolution to the
highest one that FreeBSD supports, which is 1us.

MFC after:	2 weeks
Sponsored by:	Citrix Systems R&D
This commit is contained in:
Roger Pau Monné 2016-05-04 13:49:59 +00:00
parent 731c90b713
commit 2ed46a6f7d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=299065

View File

@ -77,7 +77,12 @@ static devclass_t xentimer_devclass;
/* Xen timers may fire up to 100us off */
#define XENTIMER_MIN_PERIOD_IN_NSEC 100*NSEC_IN_USEC
#define XENCLOCK_RESOLUTION 1000001 /* ATRTC resolution + 1 */
/*
* The real resolution of the PV clock is 1ns, but the highest
* resolution that FreeBSD supports is 1us, so just use that.
*/
#define XENCLOCK_RESOLUTION 1
#define XENTIMER_QUALITY 950