diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/evlist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c index 80bef281eee0..87889f325678 100644 --- a/tools/perf/util/evlist.c +++ b/tools/perf/util/evlist.c | |||
@@ -609,10 +609,10 @@ int perf_evlist__create_maps(struct perf_evlist *evlist, | |||
609 | if (evlist->threads == NULL) | 609 | if (evlist->threads == NULL) |
610 | return -1; | 610 | return -1; |
611 | 611 | ||
612 | if (perf_target__has_cpu(target)) | 612 | if (perf_target__has_task(target)) |
613 | evlist->cpus = cpu_map__new(target->cpu_list); | ||
614 | else | ||
615 | evlist->cpus = cpu_map__dummy_new(); | 613 | evlist->cpus = cpu_map__dummy_new(); |
614 | else | ||
615 | evlist->cpus = cpu_map__new(target->cpu_list); | ||
616 | 616 | ||
617 | if (evlist->cpus == NULL) | 617 | if (evlist->cpus == NULL) |
618 | goto out_delete_threads; | 618 | goto out_delete_threads; |