summaryrefslogtreecommitdiff
path: root/src/VBox/HostDrivers
diff options
context:
space:
mode:
authorvboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2016-01-08 20:29:05 +0000
committervboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2016-01-08 20:29:05 +0000
commit8209cb827e82f52ce1c9fc15679852cb843f0add (patch)
tree721f31ec0ce5fbf53d379d7dda87ac7d9200348e /src/VBox/HostDrivers
parent7702b2b9daf8b7d4cee7297e6f8cd44b0aa05901 (diff)
downloadVirtualBox-svn-8209cb827e82f52ce1c9fc15679852cb843f0add.tar.gz
SUPDrvGip: Better timer granularity upgrade assertion.
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@59298 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/HostDrivers')
-rw-r--r--src/VBox/HostDrivers/Support/SUPDrvGip.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/VBox/HostDrivers/Support/SUPDrvGip.cpp b/src/VBox/HostDrivers/Support/SUPDrvGip.cpp
index 6206f1425dd..6af955a29d3 100644
--- a/src/VBox/HostDrivers/Support/SUPDrvGip.cpp
+++ b/src/VBox/HostDrivers/Support/SUPDrvGip.cpp
@@ -384,7 +384,10 @@ static void supdrvGipRequestHigherTimerFrequencyFromSystem(PSUPDRVDEVEXT pDevExt
|| RT_SUCCESS_NP(RTTimerRequestSystemGranularity( 2000000 /* 500 HZ */, &u32SystemResolution))
)
{
- Assert(RTTimerGetSystemGranularity() <= u32SystemResolution);
+#ifdef VBOX_STRICT
+ uint32_t u32After = RTTimerGetSystemGranularity();
+ AssertMsg(u32After <= u32SystemResolution, ("u32After=%u u32SystemResolution=%u\n", u32After, u32SystemResolution));
+#endif
pDevExt->u32SystemTimerGranularityGrant = u32SystemResolution;
}
}