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)
commitf4a0742b3cc1d03b2ff448017b8c714a77e5a261
tree3bcf4cb6a63adcce82a56931f05e001726d886b5
parent1e6285699b3034e6f4d1f091edd46d717580bf7c
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