VirtualBox

Changeset 11317 in vbox for trunk/src


Ignore:
Timestamp:
Aug 11, 2008 10:03:07 AM (16 years ago)
Author:
vboxsync
Message:

cpum: Use RTMpGetCount and RTMpGetOnlineSet instead of RTSystemProcessorGetCount and RTSystemProcessorGetActiveMask.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/CPUM.cpp

    r11311 r11317  
    5656#include <iprt/asm.h>
    5757#include <iprt/string.h>
    58 #include <iprt/system.h>
     58#include <iprt/mp.h>
     59#include <iprt/cpuset.h>
    5960
    6061
     
    571572     * Log the cpuid and we're good.
    572573     */
    573     LogRel(("Logical host processors: %d, processor active mask: %08x\n",
    574             RTSystemProcessorGetCount(), RTSystemProcessorGetActiveMask()));
     574    RTCPUSET OnlineSet;
     575    LogRel(("Logical host processors: %d, processor active mask: %016RX64\n",
     576            (int)RTMpGetCount(), RTCpuSetToU64(RTMpGetOnlineSet(&OnlineSet)) ));
    575577    LogRel(("************************* CPUID dump ************************\n"));
    576578    DBGFR3Info(pVM, "cpuid", "verbose", DBGFR3InfoLogRelHlp());
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