Searched refs:cpuNum (Results 1 – 4 of 4) sorted by relevance
204 uint32_t ThreadCpuUsage::getCpukHz(int cpuNum) in getCpukHz() argument206 if (cpuNum < 0 || cpuNum >= MAX_CPU) { in getCpukHz()207 ALOGW("getCpukHz called with invalid CPU %d", cpuNum); in getCpukHz()211 int fd = sScalingFds[cpuNum]; in getCpukHz()215 fd = sScalingFds[cpuNum]; in getCpukHz()223 freq_path[FREQ_DIGIT] = cpuNum + '0'; in getCpukHz()226 sScalingFds[cpuNum] = fd; in getCpukHz()230 ALOGW("getCpukHz can't open CPU %d", cpuNum); in getCpukHz()243 if (ret != mCurrentkHz[cpuNum]) { in getCpukHz()245 ALOGV("CPU %d frequency %u kHz", cpuNum, ret); in getCpukHz()[all …]
324 int cpuNum = sched_getcpu(); in threadLoop() local325 uint32_t kHz = mTcu.getCpukHz(cpuNum); in threadLoop()326 kHz = (kHz << 4) | (cpuNum & 0xF); in threadLoop()
359 int cpuNum = sched_getcpu(); in sample() local362 int cpukHz = mCpuUsage.getCpukHz(cpuNum); in sample()365 if (cpuNum != mCpuNum || cpukHz != mCpukHz) { in sample()366 mCpuNum = cpuNum; in sample()
119 uint32_t getCpukHz(int cpuNum);