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:
parent
9610d15b51
commit
0352224997
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user