diff options
author | royger <royger@FreeBSD.org> | 2016-05-04 13:49:59 +0000 |
---|---|---|
committer | royger <royger@FreeBSD.org> | 2016-05-04 13:49:59 +0000 |
commit | 0352224997041e08916791cf1ee4defef3e9cfb7 (patch) | |
tree | 7c4e6c2c0d8ee151a8cfefcbd50ceaa36a526dbe /sys | |
parent | 9610d15b516e3ce2c945ea59ca9bb13e9f50bad0 (diff) | |
download | FreeBSD-src-0352224997041e08916791cf1ee4defef3e9cfb7.zip FreeBSD-src-0352224997041e08916791cf1ee4defef3e9cfb7.tar.gz |
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
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/xen/timer/timer.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/xen/timer/timer.c b/sys/dev/xen/timer/timer.c index 083898c..996399b 100644 --- a/sys/dev/xen/timer/timer.c +++ b/sys/dev/xen/timer/timer.c @@ -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 |