VirtualBox

Changeset 26591 in vbox for trunk/src/VBox/Devices/EFI


Ignore:
Timestamp:
Feb 16, 2010 5:50:38 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57783
Message:

EFI: better CPU frequency esteemation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/DevEFI.cpp

    r26546 r26591  
    4040#include <iprt/path.h>
    4141#include <iprt/string.h>
     42#include <iprt/mp.h>
    4243#ifdef DEBUG
    4344# include <iprt/stream.h>
     
    11411142     */
    11421143    // @todo: we need to have VMM API to access TSC increase speed, for now provide reasonable default
    1143     pThis->u64TscFrequency = 2500000000; // TMCpuTicksPerSecond(PDMDevHlpGetVM(pDevIns));
     1144    pThis->u64TscFrequency = RTMpGetMaxFrequency(0) * 1024 * 1024;// TMCpuTicksPerSecond(PDMDevHlpGetVM(pDevIns));
     1145    if (pThis->u64TscFrequency == 0)
     1146        pThis->u64TscFrequency = 2500000000;
    11441147    /* Multiplier is read from MSR_IA32_PERF_STATUS, and now is hardcoded as 4 */
    11451148    pThis->u64FsbFrequency = pThis->u64TscFrequency / 4;
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