summaryrefslogtreecommitdiff
path: root/arch/x86/events/Makefile
diff options
context:
space:
mode:
authorStephane Eranian <eranian@google.com>2020-05-28 01:46:55 +0300
committerIngo Molnar <mingo@kernel.org>2020-05-28 08:58:55 +0300
commitfd3ae1e1587d64ef8cc8e361903d33625458073e (patch)
tree359c0456139c99cdb68de2a68bac94ab6328e387 /arch/x86/events/Makefile
parent0bffedbce90818228f554651baf8d7c75f2876d8 (diff)
downloadlinux-fd3ae1e1587d64ef8cc8e361903d33625458073e.tar.xz
perf/x86/rapl: Move RAPL support to common x86 code
To prepare for support of both Intel and AMD RAPL. As per the AMD PPR, Fam17h support Package RAPL counters to monitor power usage. The RAPL counter operates as with Intel RAPL, and as such it is beneficial to share the code. No change in functionality. Signed-off-by: Stephane Eranian <eranian@google.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20200527224659.206129-2-eranian@google.com
Diffstat (limited to 'arch/x86/events/Makefile')
-rw-r--r--arch/x86/events/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/events/Makefile b/arch/x86/events/Makefile
index 6f1d1fde8b2d..12c42eba77ec 100644
--- a/arch/x86/events/Makefile
+++ b/arch/x86/events/Makefile
@@ -1,5 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
obj-y += core.o probe.o
+obj-$(PERF_EVENTS_INTEL_RAPL) += rapl.o
obj-y += amd/
obj-$(CONFIG_X86_LOCAL_APIC) += msr.o
obj-$(CONFIG_CPU_SUP_INTEL) += intel/