Home
last modified time | relevance | path

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

/system/extras/cpustats/
Dcpustats.c51 static struct cpu_info old_total_cpu, new_total_cpu, *old_cpus, *new_cpus; variable
110 new_cpus = malloc(sizeof(struct cpu_info) * cpu_count); in main()
111 if (!new_cpus) die("Could not allocate struct cpu_info\n"); in main()
114 old_cpus[i].freq_count = new_cpus[i].freq_count = get_freq_scales_count(i); in main()
115 new_cpus[i].freqs = malloc(sizeof(struct freq_info) * new_cpus[i].freq_count); in main()
116 if (!new_cpus[i].freqs) die("Could not allocate struct freq_info\n"); in main()
126 old_total_cpu.freq_count = new_total_cpu.freq_count = new_cpus[0].freq_count; in main()
143 old_cpus = new_cpus; in main()
144 new_cpus = tmp_cpus; in main()
157 free(new_cpus[i].freqs); in main()
[all …]