-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Kan Liang
authored and
Ingo Molnar
committed
Mar 31, 2016
1 parent
e633c65
commit 4b6e257
Showing
3 changed files
with
92 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
obj-$(CONFIG_CPU_SUP_INTEL) += core.o bts.o cqm.o | ||
obj-$(CONFIG_CPU_SUP_INTEL) += cstate.o ds.o knc.o | ||
obj-$(CONFIG_CPU_SUP_INTEL) += lbr.o p4.o p6.o pt.o | ||
obj-$(CONFIG_CPU_SUP_INTEL) += rapl.o | ||
obj-$(CONFIG_PERF_EVENTS_INTEL_RAPL) += intel-rapl.o | ||
intel-rapl-objs := rapl.o | ||
obj-$(CONFIG_PERF_EVENTS_INTEL_UNCORE) += intel-uncore.o | ||
intel-uncore-objs := uncore.o uncore_nhmex.o uncore_snb.o uncore_snbep.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters