x86/perf/intel/uncore: Make the Intel uncore PMU driver modular
authorKan Liang <kan.liang@intel.com>
Sun, 20 Mar 2016 08:33:36 +0000 (01:33 -0700)
committerIngo Molnar <mingo@kernel.org>
Thu, 31 Mar 2016 08:30:34 +0000 (10:30 +0200)
commite633c65a1d5859da170a83d537d9762c07d12213
tree73310d311d977f374f23aab743f4a5baa50816d2
parent84c48d8d01b74a2b98c164513ca5e37c73166825
x86/perf/intel/uncore: Make the Intel uncore PMU driver modular

By default, the uncore driver will be built into the kernel. If it is
configured as a module, the supported CPU model can be auto loaded.

This patch also cleans up the code of uncore_cpu_init() and
uncore_pci_init().

Based-on-a-patch-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Kan Liang <kan.liang@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
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/1458462817-2475-1-git-send-email-kan.liang@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/Kconfig
arch/x86/Kconfig.perf [new file with mode: 0644]
arch/x86/events/Makefile
arch/x86/events/intel/Makefile [new file with mode: 0644]
arch/x86/events/intel/uncore.c