VirtualBox

Changeset 9960 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Jun 26, 2008 2:39:38 PM (16 years ago)
Author:
vboxsync
Message:

Don't bother changing the timer granularity for now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDRVShared.c

    r9694 r9960  
    37313731    HCPhysGip = RTR0MemObjGetPagePhysAddr(pDevExt->GipMemObj, 0); Assert(HCPhysGip != NIL_RTHCPHYS);
    37323732
     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). */
    37333736    /*
    37343737     * Try bump up the system timer resolution.
    37353738     * The more interrupts the better...
    37363739     */
    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))
    37383743        || RT_SUCCESS(RTTimerRequestSystemGranularity( 1000000 /* 1000 HZ */, &u32SystemResolution))
     3744        || RT_SUCCESS(RTTimerRequestSystemGranularity( 1953125 /*  512 HZ */, &u32SystemResolution))
     3745        || RT_SUCCESS(RTTimerRequestSystemGranularity( 2000000 /*  500 HZ */, &u32SystemResolution))
    37393746        || RT_SUCCESS(RTTimerRequestSystemGranularity( 3906250 /*  256 HZ */, &u32SystemResolution))
    37403747        || RT_SUCCESS(RTTimerRequestSystemGranularity( 4000000 /*  250 HZ */, &u32SystemResolution))
     
    37483755        pDevExt->u32SystemTimerGranularityGrant = u32SystemResolution;
    37493756    }
     3757#endif
    37503758
    37513759    /*
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette