]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
perf cpumap: Add cpu__max_present_cpu()
authorJan Stancek <jstancek@redhat.com>
Fri, 17 Feb 2017 11:10:24 +0000 (12:10 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 17 Feb 2017 15:33:05 +0000 (12:33 -0300)
commit92a7e1278005b6bb3459affc50b2b6e2464e7e7c
tree54f07cee8f0a9eb221f3a58324d5fe9417d885fa
parent8074bf51fe5af68dcbc12bd7fa72dc4be8f41dde
perf cpumap: Add cpu__max_present_cpu()

Similar to cpu__max_cpu() (which returns the max possible CPU), returns
the max present CPU.

Signed-off-by: Jan Stancek <jstancek@redhat.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/8ea4601b5cacc49927235b4ebac424bd6eeccb06.1487146877.git.jstancek@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/cpumap.c
tools/perf/util/cpumap.h