Lines Matching refs:cpuNum
205 uint32_t ThreadCpuUsage::getCpukHz(int cpuNum)
207 if (cpuNum < 0 || cpuNum >= MAX_CPU) {
208 ALOGW("getCpukHz called with invalid CPU %d", cpuNum);
212 int fd = sScalingFds[cpuNum];
216 fd = sScalingFds[cpuNum];
224 freq_path[FREQ_DIGIT] = cpuNum + '0';
227 sScalingFds[cpuNum] = fd;
231 ALOGW("getCpukHz can't open CPU %d", cpuNum);
244 if (ret != mCurrentkHz[cpuNum]) {
246 ALOGV("CPU %d frequency %u kHz", cpuNum, ret);
248 ALOGW("Can't read CPU %d frequency", cpuNum);
250 mCurrentkHz[cpuNum] = ret;