Lines Matching refs:tmp_cpus
28 static struct cpu_map *cpu_map__trim_new(int nr_cpus, int *tmp_cpus)
35 memcpy(cpus->map, tmp_cpus, payload_size);
46 int *tmp_cpus = NULL, *tmp;
66 tmp = realloc(tmp_cpus, max_entries * sizeof(int));
69 tmp_cpus = tmp;
73 tmp_cpus[nr_cpus++] = prev;
77 tmp = realloc(tmp_cpus, max_entries * sizeof(int));
80 tmp_cpus = tmp;
83 tmp_cpus[nr_cpus++] = cpu;
93 cpus = cpu_map__trim_new(nr_cpus, tmp_cpus);
97 free(tmp_cpus);
108 int *tmp_cpus = NULL, *tmp;
141 if (tmp_cpus[i] == (int)start_cpu)
146 tmp = realloc(tmp_cpus, max_entries * sizeof(int));
149 tmp_cpus = tmp;
151 tmp_cpus[nr_cpus++] = (int)start_cpu;
160 cpus = cpu_map__trim_new(nr_cpus, tmp_cpus);
164 free(tmp_cpus);