aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/lib/perf/tests/test-cpumap.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/perf/tests/test-cpumap.c')
-rw-r--r--tools/lib/perf/tests/test-cpumap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/perf/tests/test-cpumap.c b/tools/lib/perf/tests/test-cpumap.c
index 2c359bdb951e..c998b1dae863 100644
--- a/tools/lib/perf/tests/test-cpumap.c
+++ b/tools/lib/perf/tests/test-cpumap.c
@@ -29,7 +29,7 @@ int test_cpumap(int argc, char **argv)
perf_cpu_map__put(cpus);
perf_cpu_map__put(cpus);
- cpus = perf_cpu_map__default_new();
+ cpus = perf_cpu_map__new_online_cpus();
if (!cpus)
return -1;