VirtualBox

Changeset 10418 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Jul 9, 2008 1:45:07 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33077
Message:

New runtime functions fopr getting cpu frequency. Stubs only to far.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/mp.h

    r9611 r10418  
    5656 * Converts a CPU identifier to a CPU set index.
    5757 *
    58  * This may or may not validate the precense of the CPU.
     58 * This may or may not validate the presence of the CPU.
    5959 *
    6060 * @returns The CPU set index on success, -1 on failure.
     
    6666 * Converts a CPU set index to a a CPU identifier.
    6767 *
    68  * This may or may not validate the precense of the CPU, so, use
     68 * This may or may not validate the presence of the CPU, so, use
    6969 * RTMpIsCpuPossible for that.
    7070 *
     
    131131 */
    132132RTDECL(bool) RTMpIsCpuOnline(RTCPUID idCpu);
     133
     134/**
     135 * Get the current CPU speed (in Mhz) of a CPU which is currently online.
     136 *
     137 * @returns CPU speed if CPU id is valid, 0 otherwise.
     138 */
     139RTDECL(uint32_t) RTMpGetCurFrequency(RTCPUID idCpu);
     140
     141
     142/**
     143 * Get the maximum CPU speed (in Mhz) of a CPU which is currently online.
     144 *
     145 * @returns CPU speed if CPU id is valid, 0 otherwise.
     146 */
     147RTDECL(uint32_t) RTMpGetMaxFrequency(RTCPUID idCpu);
    133148
    134149
Note: See TracChangeset for help on using the changeset viewer.

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