]> git.baikalelectronics.ru Git - kernel.git/commit
perf cpumap: Auto initialize cpu__max_{node,cpu}
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 26 Jan 2016 18:51:46 +0000 (15:51 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 26 Jan 2016 19:08:36 +0000 (16:08 -0300)
commit9bf51f768d629994b8b531ba50a1ac3387f0d563
tree754381139aac9551293b0062ccb209b7e588a66b
parent031108e5f54a7b59e41ecd602c36f2b5091b91bf
perf cpumap: Auto initialize cpu__max_{node,cpu}

Since it was always checking if the initialization was done, use that
branch to do the initialization if not done already.

With this we reduce the number of exported globals from these files.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@intel.com>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/20160125212955.GG22501@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/cpumap.c
tools/perf/util/cpumap.h