Lines Matching refs:orig
350 struct perf_cpu_map *perf_cpu_map__merge(struct perf_cpu_map *orig, in perf_cpu_map__merge() argument
358 if (perf_cpu_map__is_subset(orig, other)) in perf_cpu_map__merge()
359 return orig; in perf_cpu_map__merge()
360 if (perf_cpu_map__is_subset(other, orig)) { in perf_cpu_map__merge()
361 perf_cpu_map__put(orig); in perf_cpu_map__merge()
365 tmp_len = orig->nr + other->nr; in perf_cpu_map__merge()
372 while (i < orig->nr && j < other->nr) { in perf_cpu_map__merge()
373 if (orig->map[i].cpu <= other->map[j].cpu) { in perf_cpu_map__merge()
374 if (orig->map[i].cpu == other->map[j].cpu) in perf_cpu_map__merge()
376 tmp_cpus[k++] = orig->map[i++]; in perf_cpu_map__merge()
381 while (i < orig->nr) in perf_cpu_map__merge()
382 tmp_cpus[k++] = orig->map[i++]; in perf_cpu_map__merge()
390 perf_cpu_map__put(orig); in perf_cpu_map__merge()