Home
last modified time | relevance | path

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

/system/extras/cpustats/
Dcpustats.c52 static struct cpu_info old_total_cpu, new_total_cpu, *old_cpus, *new_cpus; variable
130 old_total_cpu.freq_count = new_total_cpu.freq_count = new_cpus[0].freq_count; in main()
131 new_total_cpu.freqs = malloc(sizeof(struct freq_info) * new_total_cpu.freq_count); in main()
132 if (!new_total_cpu.freqs) die("Could not allocate struct freq_info\n"); in main()
143 old_total_cpu = new_total_cpu; in main()
144 new_total_cpu = tmp_total_cpu; in main()
157 free(new_total_cpu.freqs); in main()
245 &new_total_cpu.utime, &new_total_cpu.ntime, &new_total_cpu.stime, &new_total_cpu.itime, in read_stats()
246 &new_total_cpu.iowtime, &new_total_cpu.irqtime, &new_total_cpu.sirqtime); in read_stats()
248 for (i = 0; i < new_total_cpu.freq_count; i++) { in read_stats()
[all …]