From: Will Deacon Date: Thu, 23 Apr 2015 14:00:16 +0000 (+0100) Subject: perf tools: Use getconf to determine number of online CPUs X-Git-Tag: omap-for-v4.2/fixes-rc1^2~181^2~50^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=762abdc0c6c013425958cd9f5105f4e32268d434;p=pandora-kernel.git perf tools: Use getconf to determine number of online CPUs Parsing /proc/cpuinfo is a fiddly, arch-dependent business and a recent change to get it working for Sparc broke arm and arm64 platforms. Use sysconf to determine the number of online CPUs only parsing /proc/cpuinfo when sysconf is not available. Signed-off-by: Will Deacon Acked-by: Jiri Olsa Tested-by: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Mark Rutland Cc: Namhyung Kim Link: http://lkml.kernel.org/r/20150423140454.GJ1652@arm.com [ Made it fall back to parsing /proc when getconf not found ] Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed