/device/google/marlin/thermal/ |
thermal.c | 41 #define CPU_NUM (sizeof(CPU_SENSORS) / sizeof(int)) 42 // Sum of CPU_NUM + 3 for GPU, BATTERY, and SKIN. 111 for (cpu = 0; cpu < CPU_NUM; cpu++) { 179 int vals, cpu_num, online; local 190 return CPU_NUM; 208 vals = sscanf(line, "cpu%d %" SCNu64 " %" SCNu64 " %" SCNu64 " %" SCNu64, &cpu_num, &user, 215 if (vals != 5 || size == CPU_NUM) { 230 snprintf(file_name, MAX_LENGTH, CPU_ONLINE_FILE_FORMAT, cpu_num); 258 if (size != CPU_NUM) { 262 return CPU_NUM; [all...] |
/device/huawei/angler/thermal/ |
thermal.c | 41 #define CPU_NUM (sizeof(CPU_SENSORS) / sizeof(int)) 110 for (cpu = 0; cpu < CPU_NUM; cpu++) { 178 int vals, cpu_num, online; local 189 return CPU_NUM; 207 vals = sscanf(line, "cpu%d %" SCNu64 " %" SCNu64 " %" SCNu64 " %" SCNu64, &cpu_num, &user, 214 if (vals != 5 || size == CPU_NUM) { 229 snprintf(file_name, MAX_LENGTH, CPU_ONLINE_FILE_FORMAT, cpu_num); 257 if (size != CPU_NUM) { 261 return CPU_NUM;
|
/device/lge/bullhead/thermal/ |
thermal.c | 42 #define CPU_NUM (sizeof(CPU_SENSORS) / sizeof(int)) 108 for (cpu = 0; cpu < CPU_NUM; cpu++) { 180 int vals, cpu_num, online; local 191 return CPU_NUM; 209 vals = sscanf(line, "cpu%d %" SCNu64 " %" SCNu64 " %" SCNu64 " %" SCNu64, &cpu_num, &user, 216 if (vals != 5 || size == CPU_NUM) { 231 snprintf(file_name, MAX_LENGTH, CPU_ONLINE_FILE_FORMAT, cpu_num); 260 if (size != CPU_NUM) { 265 return CPU_NUM;
|
/device/htc/flounder/thermal/ |
thermal.c | 39 #define CPU_NUM 2 144 int vals, cpu_num, online; local 155 return CPU_NUM; 173 vals = sscanf(line, "cpu%d %" SCNu64 " %" SCNu64 " %" SCNu64 " %" SCNu64, &cpu_num, &user, 180 if (vals != 5 || size == CPU_NUM) { 195 snprintf(file_name, MAX_LENGTH, CPU_ONLINE_FILE_FORMAT, cpu_num); 224 if (size != CPU_NUM) { 229 return CPU_NUM;
|
/device/moto/shamu/thermal/ |
thermal.c | 40 #define CPU_NUM 4 106 for (cpu = 0; cpu < CPU_NUM; cpu++) { 170 int vals, cpu_num, online; local 181 return CPU_NUM; 199 vals = sscanf(line, "cpu%d %" SCNu64 " %" SCNu64 " %" SCNu64 " %" SCNu64, &cpu_num, &user, 206 if (vals != 5 || size == CPU_NUM) { 221 snprintf(file_name, MAX_LENGTH, CPU_ONLINE_FILE_FORMAT, cpu_num); 250 if (size != CPU_NUM) {
|