aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2015-05-27 14:40:10 +0200
committerIngo Molnar <mingo@kernel.org>2015-05-27 14:40:10 +0200
commitd563a6bb3d107bf62ec7cd852a142d7e93f0db79 (patch)
tree9902cb7c599126341a8fb32e572305c04fffb9c8 /tools/perf
parentx86/mm/pageattr: Remove an unused variable in slow_virt_to_phys() (diff)
parentLinux 4.1-rc5 (diff)
downloadwireguard-linux-d563a6bb3d107bf62ec7cd852a142d7e93f0db79.tar.xz
wireguard-linux-d563a6bb3d107bf62ec7cd852a142d7e93f0db79.zip
Merge tag 'v4.1-rc5' into x86/mm, to refresh the tree before applying new changes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to '')
-rw-r--r--tools/perf/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index c699dc35eef9..d31a7bbd7cee 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -24,7 +24,7 @@ unexport MAKEFLAGS
# (To override it, run 'make JOBS=1' and similar.)
#
ifeq ($(JOBS),)
- JOBS := $(shell egrep -c '^processor|^CPU' /proc/cpuinfo 2>/dev/null)
+ JOBS := $(shell (getconf _NPROCESSORS_ONLN || egrep -c '^processor|^CPU[0-9]' /proc/cpuinfo) 2>/dev/null)
ifeq ($(JOBS),0)
JOBS := 1
endif