Lines Matching refs:old_cpus
52 static struct cpu_info old_total_cpu, new_total_cpu, *old_cpus, *new_cpus; variable
110 old_cpus = malloc(sizeof(struct cpu_info) * cpu_count); in main()
111 if (!old_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()
121 old_cpus[i].freqs = malloc(sizeof(struct freq_info) * old_cpus[i].freq_count); in main()
122 if (!old_cpus[i].freqs) die("Could not allocate struct freq_info\n"); in main()
146 tmp_cpus = old_cpus; in main()
147 old_cpus = new_cpus; in main()
162 free(old_cpus[i].freqs); in main()
165 free(old_cpus); in main()
279 new_cpus[cpu].freqs[i].freq = old_cpus[cpu].freqs[i].freq; in read_freq_stats()
280 new_cpus[cpu].freqs[i].time = old_cpus[cpu].freqs[i].time; in read_freq_stats()
312 print_cpu_stats(label, &new_cpus[i], &old_cpus[i], print_freq); in print_stats()
396 if (new_cpus[i].freqs[j].time - old_cpus[i].freqs[j].time != in should_print_freq_stats()
397 new_cpus[0].freqs[j].time - old_cpus[0].freqs[j].time) { in should_print_freq_stats()