Changeset 47968 in vbox
- Timestamp:
- Aug 21, 2013 1:29:38 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/solaris/mp-solaris.cpp
r44529 r47968 126 126 * @param pszStatName The cpu_info stat name. 127 127 */ 128 static uint64_t rtMpSolarisGetFrequency(RTCPUID idCpu, c har *pszStatName)128 static uint64_t rtMpSolarisGetFrequency(RTCPUID idCpu, const char *pszStatName) 129 129 { 130 130 uint64_t u64 = 0; … … 141 141 if (kstat_read(g_pKsCtl, g_papCpuInfo[idCpu], 0) != -1) 142 142 { 143 kstat_named_t *pStat = (kstat_named_t *)kstat_data_lookup(g_papCpuInfo[idCpu], pszStatName);143 kstat_named_t *pStat = (kstat_named_t *)kstat_data_lookup(g_papCpuInfo[idCpu], (char*)pszStatName); 144 144 if (pStat) 145 145 { … … 176 176 RTDECL(uint32_t) RTMpGetCurFrequency(RTCPUID idCpu) 177 177 { 178 /* Solaris really need to fix their APIs. */ 178 179 return rtMpSolarisGetFrequency(idCpu, "current_clock_Hz") / 1000000; 179 180 }
Note:
See TracChangeset
for help on using the changeset viewer.