Changeset 9960 in vbox for trunk/src/VBox/HostDrivers
- Timestamp:
- Jun 26, 2008 2:39:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDRVShared.c
r9694 r9960 3731 3731 HCPhysGip = RTR0MemObjGetPagePhysAddr(pDevExt->GipMemObj, 0); Assert(HCPhysGip != NIL_RTHCPHYS); 3732 3732 3733 #if 0 /** @todo Disabled this as we didn't used to do it before and causes unnecessary stress on laptops. 3734 * It only applies to Windows and should probably revisited later, if possible made part of the 3735 * timer code (return min granularity in RTTimerGetSystemGranularity and set it in RTTimerStart). */ 3733 3736 /* 3734 3737 * Try bump up the system timer resolution. 3735 3738 * The more interrupts the better... 3736 3739 */ 3737 if ( RT_SUCCESS(RTTimerRequestSystemGranularity( 976563 /* 1024 HZ */, &u32SystemResolution)) 3740 if ( RT_SUCCESS(RTTimerRequestSystemGranularity( 488281 /* 2048 HZ */, &u32SystemResolution)) 3741 || RT_SUCCESS(RTTimerRequestSystemGranularity( 500000 /* 2000 HZ */, &u32SystemResolution)) 3742 || RT_SUCCESS(RTTimerRequestSystemGranularity( 976563 /* 1024 HZ */, &u32SystemResolution)) 3738 3743 || RT_SUCCESS(RTTimerRequestSystemGranularity( 1000000 /* 1000 HZ */, &u32SystemResolution)) 3744 || RT_SUCCESS(RTTimerRequestSystemGranularity( 1953125 /* 512 HZ */, &u32SystemResolution)) 3745 || RT_SUCCESS(RTTimerRequestSystemGranularity( 2000000 /* 500 HZ */, &u32SystemResolution)) 3739 3746 || RT_SUCCESS(RTTimerRequestSystemGranularity( 3906250 /* 256 HZ */, &u32SystemResolution)) 3740 3747 || RT_SUCCESS(RTTimerRequestSystemGranularity( 4000000 /* 250 HZ */, &u32SystemResolution)) … … 3748 3755 pDevExt->u32SystemTimerGranularityGrant = u32SystemResolution; 3749 3756 } 3757 #endif 3750 3758 3751 3759 /*
Note:
See TracChangeset
for help on using the changeset viewer.