Changeset 11272 in vbox for trunk/src/VBox
- Timestamp:
- Aug 8, 2008 5:03:34 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 34356
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/solaris/mp-solaris.cpp
r11256 r11272 189 189 } 190 190 191 191 192 RTDECL(RTCPUID) RTMpGetCount(void) 192 193 { … … 194 195 * Solaris has sysconf. 195 196 */ 196 return sysconf(_SC_NPROCESSORS_CONF); 197 } 197 int cCpus = sysconf(_SC_NPROCESSORS_MAX) 198 if (cCpus < 0) 199 cCpus = sysconf(_SC_NPROCESSORS_CONF); 200 return cCpus; 201 } 202 198 203 199 204 RTDECL(RTCPUID) RTMpGetOnlineCount(void)
Note:
See TracChangeset
for help on using the changeset viewer.