- Timestamp:
- Aug 11, 2008 10:11:00 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPLib.cpp
r10805 r11319 64 64 #include <iprt/ldr.h> 65 65 #include <iprt/asm.h> 66 #include <iprt/system.h> 66 #include <iprt/mp.h> 67 #include <iprt/cpuset.h> 67 68 #include <iprt/thread.h> 68 69 #include <iprt/process.h> … … 1200 1201 1201 1202 int rc = VINF_SUCCESS; 1202 const unsigned cCpus = RTSystemProcessorGetCount();1203 const RTCPUID cCpus = RTMpGetCount(); 1203 1204 if (cCpus <= 1) 1204 1205 { … … 1224 1225 /* SMP */ 1225 1226 uint64_t u64AffMaskSaved = RTThreadGetAffinity(); 1226 uint64_t u64AffMaskPatched = RT SystemProcessorGetActiveMask() & u64AffMaskSaved;1227 uint64_t u64AffMaskPatched = RTCpuSetToU64(RTMpGetOnlineSet(&OnlineSet)) & u64AffMaskSaved; 1227 1228 unsigned cCpusPatched = 0; 1229 AssertLogRelReturn(cCpus < 64); 1228 1230 1229 1231 for (int i = 0; i < 64; i++)
Note:
See TracChangeset
for help on using the changeset viewer.