|
@@ -819,13 +819,7 @@ int perf_evlist__create_maps(struct perf_evlist *evlist, struct target *target)
|
|
|
if (evlist->threads == NULL)
|
|
|
return -1;
|
|
|
|
|
|
- if (target->default_per_cpu)
|
|
|
- evlist->cpus = target->per_thread ?
|
|
|
- cpu_map__dummy_new() :
|
|
|
- cpu_map__new(target->cpu_list);
|
|
|
- else if (target__has_task(target))
|
|
|
- evlist->cpus = cpu_map__dummy_new();
|
|
|
- else if (!target__has_cpu(target) && !target->uses_mmap)
|
|
|
+ if (target__uses_dummy_map(target))
|
|
|
evlist->cpus = cpu_map__dummy_new();
|
|
|
else
|
|
|
evlist->cpus = cpu_map__new(target->cpu_list);
|