x86/perf/intel/rapl: Make the Intel RAPL PMU driver modular
authorKan Liang <kan.liang@intel.com>
Sat, 19 Mar 2016 07:20:50 +0000 (00:20 -0700)
committerIngo Molnar <mingo@kernel.org>
Thu, 31 Mar 2016 08:30:35 +0000 (10:30 +0200)
commit4b6e2571bf00019e016255ad62b56feb9f498db7
treeb647da18853e23bd7013ae43e4ad5125e115875a
parente633c65a1d5859da170a83d537d9762c07d12213
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>
arch/x86/Kconfig.perf
arch/x86/events/intel/Makefile
arch/x86/events/intel/rapl.c