Home
last modified time | relevance | path

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

/frameworks/av/media/libcpustats/
DThreadCpuUsage.cpp204 uint32_t ThreadCpuUsage::getCpukHz(int cpuNum) in getCpukHz() argument
206 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 …]
/frameworks/av/services/audioflinger/
DFastThread.cpp324 int cpuNum = sched_getcpu(); in threadLoop() local
325 uint32_t kHz = mTcu.getCpukHz(cpuNum); in threadLoop()
326 kHz = (kHz << 4) | (cpuNum & 0xF); in threadLoop()
DThreads.cpp359 int cpuNum = sched_getcpu(); in sample() local
362 int cpukHz = mCpuUsage.getCpukHz(cpuNum); in sample()
365 if (cpuNum != mCpuNum || cpukHz != mCpukHz) { in sample()
366 mCpuNum = cpuNum; in sample()
/frameworks/av/include/cpustats/
DThreadCpuUsage.h119 uint32_t getCpukHz(int cpuNum);