Changeset 40216 in vbox for trunk/src/VBox/Runtime/r0drv
- Timestamp:
- Feb 22, 2012 3:17:31 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 76389
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/solaris/vbi/mp-r0drv-solaris.c
r37062 r40216 124 124 *pSet = g_rtMpSolarisCpuSet; 125 125 return pSet; 126 127 #if 0128 RTCPUID idCpu;129 130 RTCpuSetEmpty(pSet);131 idCpu = RTMpGetMaxCpuId(); /* it's inclusive */132 do133 {134 if (RTMpIsCpuOnline(idCpu))135 RTCpuSetAdd(pSet, idCpu);136 } while (idCpu-- > 0);137 138 return pSet;139 #endif140 126 } 141 127 … … 146 132 RTMpGetOnlineSet(&Set); 147 133 return RTCpuSetCount(&Set); 148 149 #if 0150 int c;151 int cnt = 0;152 153 for (c = 0; c < vbi_cpu_count(); ++c)154 {155 if (vbi_cpu_online(c))156 ++cnt;157 }158 return cnt;159 #endif160 134 } 161 135
Note:
See TracChangeset
for help on using the changeset viewer.