Searched refs:old_cpus (Results 1 – 1 of 1) sorted by relevance
52 static struct cpu_info old_total_cpu, new_total_cpu, *old_cpus, *new_cpus; variable110 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()[all …]