Home
last modified time | relevance | path

Searched refs:cpuNum (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/media/libcpustats/
DThreadCpuUsage.cpp209 uint32_t ThreadCpuUsage::getCpukHz(int cpuNum) in getCpukHz() argument
211 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 …]
/frameworks/av/services/audioflinger/
DFastThread.cpp333 int cpuNum = sched_getcpu(); in threadLoop() local
334 uint32_t kHz = mTcu.getCpukHz(cpuNum); in threadLoop()
335 kHz = (kHz << 4) | (cpuNum & 0xF); in threadLoop()
DThreads.cpp365 int cpuNum = sched_getcpu(); in sample() local
368 int cpukHz = mCpuUsage.getCpukHz(cpuNum); in sample()
371 if (cpuNum != mCpuNum || cpukHz != mCpukHz) { in sample()
372 mCpuNum = cpuNum; in sample()
/frameworks/av/media/libcpustats/include/cpustats/
DThreadCpuUsage.h119 uint32_t getCpukHz(int cpuNum);