- Timestamp:
- Apr 7, 2016 2:28:14 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceCpuHotPlug.cpp
r58054 r60374 318 318 for (unsigned i = 0; i < RT_ELEMENTS(g_apszTopologyPath); i++) 319 319 { 320 int64_t i64Core = RTLinuxSysFsReadIntFile(10, "%s/%s/topology/core_id", 321 pszPathCurr, g_apszTopologyPath[i]); 322 int64_t i64Package = RTLinuxSysFsReadIntFile(10, "%s/%s/topology/physical_package_id", 323 pszPathCurr, g_apszTopologyPath[i]); 324 325 if ( i64Core != -1 326 && i64Package != -1) 320 int64_t i64Core = 0; 321 int64_t i64Package = 0; 322 323 int rc2 = RTLinuxSysFsReadIntFile(10, &i64Core, "%s/%s/topology/core_id", 324 pszPathCurr, g_apszTopologyPath[i]); 325 if (RT_SUCCESS(rc2)) 326 rc2 = RTLinuxSysFsReadIntFile(10, &i64Package, "%s/%s/topology/physical_package_id", 327 pszPathCurr, g_apszTopologyPath[i]); 328 329 if (RT_SUCCESS(rc2)) 327 330 { 328 331 idCore = (uint32_t)i64Core;
Note:
See TracChangeset
for help on using the changeset viewer.