summaryrefslogtreecommitdiff
path: root/arch/x86/events/Kconfig
diff options
context:
space:
mode:
authorStephane Eranian <eranian@google.com>2020-05-27 15:46:55 -0700
committerIngo Molnar <mingo@kernel.org>2020-05-28 07:58:55 +0200
commitfd3ae1e1587d64ef8cc8e361903d33625458073e (patch)
tree359c0456139c99cdb68de2a68bac94ab6328e387 /arch/x86/events/Kconfig
parent0bffedbce90818228f554651baf8d7c75f2876d8 (diff)
downloadlwn-fd3ae1e1587d64ef8cc8e361903d33625458073e.tar.gz
lwn-fd3ae1e1587d64ef8cc8e361903d33625458073e.zip
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/Kconfig')
-rw-r--r--arch/x86/events/Kconfig6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/events/Kconfig b/arch/x86/events/Kconfig
index 9a7a1446cb3a..4a809c6cbd2f 100644
--- a/arch/x86/events/Kconfig
+++ b/arch/x86/events/Kconfig
@@ -10,11 +10,11 @@ config PERF_EVENTS_INTEL_UNCORE
available on NehalemEX and more modern processors.
config PERF_EVENTS_INTEL_RAPL
- tristate "Intel rapl performance events"
- depends on PERF_EVENTS && CPU_SUP_INTEL && PCI
+ tristate "Intel/AMD rapl performance events"
+ depends on PERF_EVENTS && (CPU_SUP_INTEL || CPU_SUP_AMD) && PCI
default y
---help---
- Include support for Intel rapl performance events for power
+ Include support for Intel and AMD rapl performance events for power
monitoring on modern processors.
config PERF_EVENTS_INTEL_CSTATE