Lines Matching refs:tmp_cpus
30 static struct cpu_map *cpu_map__trim_new(int nr_cpus, int *tmp_cpus) in cpu_map__trim_new() argument
37 memcpy(cpus->map, tmp_cpus, payload_size); in cpu_map__trim_new()
47 int *tmp_cpus = NULL, *tmp; in cpu_map__read() local
63 tmp = realloc(tmp_cpus, max_entries * sizeof(int)); in cpu_map__read()
66 tmp_cpus = tmp; in cpu_map__read()
70 tmp_cpus[nr_cpus++] = prev; in cpu_map__read()
74 tmp = realloc(tmp_cpus, max_entries * sizeof(int)); in cpu_map__read()
77 tmp_cpus = tmp; in cpu_map__read()
80 tmp_cpus[nr_cpus++] = cpu; in cpu_map__read()
90 cpus = cpu_map__trim_new(nr_cpus, tmp_cpus); in cpu_map__read()
94 free(tmp_cpus); in cpu_map__read()
118 int *tmp_cpus = NULL, *tmp; in cpu_map__new() local
151 if (tmp_cpus[i] == (int)start_cpu) in cpu_map__new()
156 tmp = realloc(tmp_cpus, max_entries * sizeof(int)); in cpu_map__new()
159 tmp_cpus = tmp; in cpu_map__new()
161 tmp_cpus[nr_cpus++] = (int)start_cpu; in cpu_map__new()
170 cpus = cpu_map__trim_new(nr_cpus, tmp_cpus); in cpu_map__new()
174 free(tmp_cpus); in cpu_map__new()