VirtualBox

Ignore:
Timestamp:
Feb 19, 2009 5:46:20 PM (16 years ago)
Author:
vboxsync
Message:

mp-r0drv-darwin: don't use ml_get_max_cpus, it's obsolete.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/darwin/mp-r0drv-darwin.cpp

    r16354 r16958  
    5353{
    5454    int32_t cCpus = -1;
    55 #ifdef RT_ARCH_AMD64
    5655    size_t  oldLen = sizeof(cCpus);
    5756    int rc = sysctlbyname("hw.ncpu", &cCpus, &oldLen, NULL, NULL);
     
    6160        cCpus = MY_DARWIN_MAX_CPUS;
    6261    }
    63 #else
    64     cCpus = ml_get_max_cpus();
    65 #endif
    6662
    6763    ASMAtomicWriteS32(&g_cMaxCpus, cCpus);
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