perf/x86/rapl: Refactor to share the RAPL code between Intel and AMD CPUs
authorStephane Eranian <eranian@google.com>
Wed, 27 May 2020 22:46:56 +0000 (15:46 -0700)
committerIngo Molnar <mingo@kernel.org>
Thu, 28 May 2020 05:58:55 +0000 (07:58 +0200)
commit5c95c68949880035b68e5c48fdf4899ec0989631
tree3a8da665156905f47552996d5a257f2de9789d28
parentfd3ae1e1587d64ef8cc8e361903d33625458073e
perf/x86/rapl: Refactor to share the RAPL code between Intel and AMD CPUs

This patch modifies the rapl_model struct to include architecture specific
knowledge in this previously Intel specific structure, and in particular
it adds the MSR for POWER_UNIT and the rapl_msrs array.

No functional changes.

Signed-off-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20200527224659.206129-3-eranian@google.com
arch/x86/events/rapl.c