summaryrefslogtreecommitdiffstats
path: root/arch/x86/Kconfig.perf
diff options
context:
space:
mode:
authorKan Liang2016-03-19 08:20:50 +0100
committerIngo Molnar2016-03-31 10:30:35 +0200
commit4b6e2571bf00019e016255ad62b56feb9f498db7 (patch)
treeb647da18853e23bd7013ae43e4ad5125e115875a /arch/x86/Kconfig.perf
parentx86/perf/intel/uncore: Make the Intel uncore PMU driver modular (diff)
downloadkernel-qcow2-linux-4b6e2571bf00019e016255ad62b56feb9f498db7.tar.gz
kernel-qcow2-linux-4b6e2571bf00019e016255ad62b56feb9f498db7.tar.xz
kernel-qcow2-linux-4b6e2571bf00019e016255ad62b56feb9f498db7.zip
x86/perf/intel/rapl: Make the Intel RAPL PMU driver modular
By default, the RAPL driver will be built into the kernel. If it is configured as a module, the supported CPU model can be auto loaded. Also clean up the code of rapl_pmu_init(). Based-on-a-patch-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Kan Liang <kan.liang@intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Cc: Vince Weaver <vincent.weaver@maine.edu> Link: http://lkml.kernel.org/r/1458372050-2420-2-git-send-email-kan.liang@intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/Kconfig.perf')
-rw-r--r--arch/x86/Kconfig.perf8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/Kconfig.perf b/arch/x86/Kconfig.perf
index 90b7f5878c96..b239ad5d0a4e 100644
--- a/arch/x86/Kconfig.perf
+++ b/arch/x86/Kconfig.perf
@@ -8,4 +8,12 @@ config PERF_EVENTS_INTEL_UNCORE
Include support for Intel uncore performance events. These are
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
+ default y
+ ---help---
+ Include support for Intel rapl performance events for power
+ monitoring on modern processors.
+
endmenu