Home
last modified time | relevance | path

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

/system/extras/cpustats/
Dcpustats.c56 static struct cpu_info old_total_cpu, new_total_cpu, *old_cpus, *new_cpus; variable
114 old_cpus = malloc(sizeof(struct cpu_info) * cpu_count); in main()
115 if (!old_cpus) die("Could not allocate struct cpu_info\n"); in main()
122 old_cpus[i].freq_count = new_cpus[i].freq_count = freq_count; in main()
125 old_cpus[i].freqs = malloc(sizeof(struct freq_info) * old_cpus[i].freq_count); in main()
126 if (!old_cpus[i].freqs) die("Could not allocate struct freq_info\n"); in main()
150 tmp_cpus = old_cpus; in main()
151 old_cpus = new_cpus; in main()
166 free(old_cpus[i].freqs); in main()
169 free(old_cpus); in main()
[all …]