Searched refs:cpuNum (Results 1 – 4 of 4) sorted by relevance
209 uint32_t ThreadCpuUsage::getCpukHz(int cpuNum) in getCpukHz() argument211 if (cpuNum < 0 || cpuNum >= MAX_CPU) { in getCpukHz()212 ALOGW("getCpukHz called with invalid CPU %d", cpuNum); in getCpukHz()216 int fd = sScalingFds[cpuNum]; in getCpukHz()220 fd = sScalingFds[cpuNum]; in getCpukHz()228 freq_path[FREQ_DIGIT] = cpuNum + '0'; in getCpukHz()231 sScalingFds[cpuNum] = fd; in getCpukHz()235 ALOGW("getCpukHz can't open CPU %d", cpuNum); in getCpukHz()248 if (ret != mCurrentkHz[cpuNum]) { in getCpukHz()250 ALOGV("CPU %d frequency %u kHz", cpuNum, ret); in getCpukHz()[all …]
333 int cpuNum = sched_getcpu(); in threadLoop() local334 uint32_t kHz = mTcu.getCpukHz(cpuNum); in threadLoop()335 kHz = (kHz << 4) | (cpuNum & 0xF); in threadLoop()
365 int cpuNum = sched_getcpu(); in sample() local368 int cpukHz = mCpuUsage.getCpukHz(cpuNum); in sample()371 if (cpuNum != mCpuNum || cpukHz != mCpukHz) { in sample()372 mCpuNum = cpuNum; in sample()
119 uint32_t getCpukHz(int cpuNum);