Changeset 8789 in vbox for trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp
- Timestamp:
- May 13, 2008 3:43:59 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp
r8155 r8789 120 120 if (NT_SUCCESS(rc)) 121 121 { 122 uint64_t u64DiffCores; 123 122 124 /* 123 125 * Initialize the device extension. … … 125 127 PSUPDRVDEVEXT pDevExt = (PSUPDRVDEVEXT)pDevObj->DeviceExtension; 126 128 memset(pDevExt, 0, sizeof(*pDevExt)); 129 130 /* Make sure the tsc is consistent across cpus/cores. */ 131 pDevExt->fForceAsyncTsc = supdrvDetermineAsyncTsc(&u64DiffCores); 132 dprintf(("supdrvDetermineAsyncTsc: fAsync=%d u64DiffCores=%u.\n", pDevExt->fForceAsyncTsc, (uint32_t)u64DiffCores)); 133 127 134 int vrc = supdrvInitDevExt(pDevExt); 128 135 if (!vrc) … … 767 774 * Force async tsc mode (stub). 768 775 */ 769 bool VBOXCALL supdrvOSGetForcedAsyncTscMode( void)770 { 771 return false;776 bool VBOXCALL supdrvOSGetForcedAsyncTscMode(PSUPDRVDEVEXT pDevExt) 777 { 778 return pDevExt->fForceAsyncTsc != 0; 772 779 } 773 780
Note:
See TracChangeset
for help on using the changeset viewer.