Searched refs:MAX_CPU (Results 1 - 2 of 2) sorted by relevance

/frameworks/native/include/cpustats/
H A DThreadCpuUsage.h129 static const int MAX_CPU = 8; member in class:android::ThreadCpuUsage
130 static int sScalingFds[MAX_CPU];// file descriptor per CPU for reading scaling_cur_freq
131 uint32_t mCurrentkHz[MAX_CPU]; // current CPU frequency in kHz, not static to avoid a race
133 static int sKernelMax; // like MAX_CPU, but determined at runtime == cpu/kernel_max + 1
/frameworks/native/libs/cpustats/
H A DThreadCpuUsage.cpp165 int ThreadCpuUsage::sScalingFds[ThreadCpuUsage::MAX_CPU];
182 if (sKernelMax >= MAX_CPU - 1) {
183 ALOGW("kernel_max %d but MAX_CPU %d", sKernelMax, MAX_CPU);
184 sKernelMax = MAX_CPU;
200 for (i = 0; i < MAX_CPU; ++i) {
207 if (cpuNum < 0 || cpuNum >= MAX_CPU) {
221 COMPILE_TIME_ASSERT_FUNCTION_SCOPE(MAX_CPU <= 10);

Completed in 274 milliseconds