Lines Matching refs:orig
297 struct perf_cpu_map *perf_cpu_map__merge(struct perf_cpu_map *orig, in perf_cpu_map__merge() argument
305 if (!orig && !other) in perf_cpu_map__merge()
307 if (!orig) { in perf_cpu_map__merge()
312 return orig; in perf_cpu_map__merge()
313 if (orig->nr == other->nr && in perf_cpu_map__merge()
314 !memcmp(orig->map, other->map, orig->nr * sizeof(int))) in perf_cpu_map__merge()
315 return orig; in perf_cpu_map__merge()
317 tmp_len = orig->nr + other->nr; in perf_cpu_map__merge()
324 while (i < orig->nr && j < other->nr) { in perf_cpu_map__merge()
325 if (orig->map[i] <= other->map[j]) { in perf_cpu_map__merge()
326 if (orig->map[i] == other->map[j]) in perf_cpu_map__merge()
328 tmp_cpus[k++] = orig->map[i++]; in perf_cpu_map__merge()
333 while (i < orig->nr) in perf_cpu_map__merge()
334 tmp_cpus[k++] = orig->map[i++]; in perf_cpu_map__merge()
342 perf_cpu_map__put(orig); in perf_cpu_map__merge()