summaryrefslogtreecommitdiffstats
path: root/tools/perf/bench/futex-requeue.c
diff options
context:
space:
mode:
authorJonathan Corbet2016-12-27 20:53:44 +0100
committerJonathan Corbet2016-12-27 20:53:44 +0100
commit54ab6db0909061ab7ee07233d3cab86d29f86e6c (patch)
treea7650ab5c0fa3a6a3841de8e8693041b3e009054 /tools/perf/bench/futex-requeue.c
parentdocs: sphinx-extensions: make rstFlatTable work with docutils 0.13 (diff)
parentLinux 4.10-rc1 (diff)
downloadkernel-qcow2-linux-54ab6db0909061ab7ee07233d3cab86d29f86e6c.tar.gz
kernel-qcow2-linux-54ab6db0909061ab7ee07233d3cab86d29f86e6c.tar.xz
kernel-qcow2-linux-54ab6db0909061ab7ee07233d3cab86d29f86e6c.zip
Merge tag 'v4.10-rc1' into docs-next
Linux 4.10-rc1
Diffstat (limited to 'tools/perf/bench/futex-requeue.c')
-rw-r--r--tools/perf/bench/futex-requeue.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/bench/futex-requeue.c b/tools/perf/bench/futex-requeue.c
index 2b9705a8734c..fd4ee95b689a 100644
--- a/tools/perf/bench/futex-requeue.c
+++ b/tools/perf/bench/futex-requeue.c
@@ -128,6 +128,8 @@ int bench_futex_requeue(int argc, const char **argv,
if (!nthreads)
nthreads = ncpus;
+ else
+ nthreads = futexbench_sanitize_numeric(nthreads);
worker = calloc(nthreads, sizeof(*worker));
if (!worker)