diff options
Diffstat (limited to 'tools/perf/util/evlist.c')
-rw-r--r-- | tools/perf/util/evlist.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c index 76fa76431329..7bb6ee1ca19f 100644 --- a/tools/perf/util/evlist.c +++ b/tools/perf/util/evlist.c | |||
@@ -819,13 +819,7 @@ int perf_evlist__create_maps(struct perf_evlist *evlist, struct target *target) | |||
819 | if (evlist->threads == NULL) | 819 | if (evlist->threads == NULL) |
820 | return -1; | 820 | return -1; |
821 | 821 | ||
822 | if (target->default_per_cpu) | 822 | if (target__uses_dummy_map(target)) |
823 | evlist->cpus = target->per_thread ? | ||
824 | cpu_map__dummy_new() : | ||
825 | cpu_map__new(target->cpu_list); | ||
826 | else if (target__has_task(target)) | ||
827 | evlist->cpus = cpu_map__dummy_new(); | ||
828 | else if (!target__has_cpu(target) && !target->uses_mmap) | ||
829 | evlist->cpus = cpu_map__dummy_new(); | 823 | evlist->cpus = cpu_map__dummy_new(); |
830 | else | 824 | else |
831 | evlist->cpus = cpu_map__new(target->cpu_list); | 825 | evlist->cpus = cpu_map__new(target->cpu_list); |