]> git.baikalelectronics.ru Git - kernel.git/commit
perf pmu: Move *_cpuid_str() weak functions to header.c
authorKan Liang <kan.liang@linux.intel.com>
Wed, 21 Nov 2018 16:49:39 +0000 (08:49 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 22 Nov 2018 01:39:59 +0000 (22:39 -0300)
commit4779d4131f6500f6668355b275221e9c4e2528bd
tree3bcf4cb6a63adcce82a56931f05e001726d886b5
parentac32a60a0569813ea5f421326ac36e703b13cb4e
perf pmu: Move *_cpuid_str() weak functions to header.c

The weak functions, strcmp_cpuid_str() and get_cpuid_str(), are defined
in pmu.c.

Most of the cpuid related functions, including *_cpuid_str()'s
declaration and platform specific definition, are in header.c/h.

To make the declaration and definition of all cpuid related functions in
a consistent place, move the weak functions to header.c.

There is no functional change.

Suggested-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Link: http://lkml.kernel.org/r/20181121164939.13482-1-kan.liang@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/header.c
tools/perf/util/pmu.c