Home
last modified time | relevance | path

Searched refs:new_cpus (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
112 new_cpus = malloc(sizeof(struct cpu_info) * cpu_count); in main()
113 if (!new_cpus) die("Could not allocate struct cpu_info\n"); in main()
118 old_cpus[i].freq_count = new_cpus[i].freq_count = freq_count; in main()
119 new_cpus[i].freqs = malloc(sizeof(struct freq_info) * new_cpus[i].freq_count); in main()
120 if (!new_cpus[i].freqs) die("Could not allocate struct freq_info\n"); in main()
130 old_total_cpu.freq_count = new_total_cpu.freq_count = new_cpus[0].freq_count; in main()
147 old_cpus = new_cpus; in main()
148 new_cpus = tmp_cpus; in main()
161 free(new_cpus[i].freqs); in main()
[all …]