VirtualBox

Changeset 7419 in vbox for trunk/src/VBox/Runtime/r0drv


Ignore:
Timestamp:
Mar 10, 2008 4:05:51 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
28853
Message:

Added missing RTMpGetMaxCpuId.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/solaris/mp-r0drv-solaris.c

    r7331 r7419  
    4444
    4545
     46RTDECL(int) RTMpCpuIdToSetIndex(RTCPUID idCpu)
     47{
     48    return idCpu < NCPU ? idCpu : -1;
     49}
     50
     51
     52RTDECL(RTCPUID) RTMpCpuIdFromSetIndex(int iCpu)
     53{
     54    return (unsigned)iCpu < NCPU ? iCpu : NIL_RTCPUID;
     55}
     56
     57
     58RTDECL(RTCPUID) RTMpGetMaxCpuId(void)
     59{
     60    return NCPU - 1;
     61}
     62
     63
    4664RTDECL(bool) RTMpIsCpuOnline(RTCPUID idCpu)
    4765{
     
    5674    cpu_t *pCpu = idCpu < NCPU ? cpu_get(idCpu) : NULL;
    5775    return pCpu != NULL;
    58 }
    59 
    60 
    61 RTDECL(int) RTMpCpuIdToSetIndex(RTCPUID idCpu)
    62 {
    63     return idCpu < NCPU ? idCpu : -1;
    64 }
    65 
    66 
    67 RTDECL(RTCPUID) RTMpCpuIdFromSetIndex(int iCpu)
    68 {
    69     return (unsigned)iCpu < NCPU ? iCpu : NIL_RTCPUID;
    7076}
    7177
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