summaryrefslogtreecommitdiffstats
path: root/drivers/powercap/Makefile
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2019-07-10 21:44:30 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-07-11 15:08:58 +0200
commit3382388d714891fc0f575926189f33d22e7c960b (patch)
treeaffa221ed25b32256fc34a920ff0a21b4485c21f /drivers/powercap/Makefile
parent1193b1658d16f03cdb2edbac5f2a796ccca225af (diff)
downloadlinux-stable-3382388d714891fc0f575926189f33d22e7c960b.tar.gz
linux-stable-3382388d714891fc0f575926189f33d22e7c960b.tar.bz2
linux-stable-3382388d714891fc0f575926189f33d22e7c960b.zip
intel_rapl: abstract RAPL common code
Split intel_rapl.c to intel_rapl_common.c and intel_rapl_msr.c, where intel_rapl_common.c contains the common code that can be used by both MSR and MMIO interface. intel_rapl_msr.c contains the implementation of RAPL MSR interface. Reviewed-by: Pandruvada, Srinivas <srinivas.pandruvada@intel.com> Tested-by: Pandruvada, Srinivas <srinivas.pandruvada@intel.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/powercap/Makefile')
-rw-r--r--drivers/powercap/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/powercap/Makefile b/drivers/powercap/Makefile
index 81c8ccaba6e7..7255c94ec61c 100644
--- a/drivers/powercap/Makefile
+++ b/drivers/powercap/Makefile
@@ -1,4 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-only
obj-$(CONFIG_POWERCAP) += powercap_sys.o
-obj-$(CONFIG_INTEL_RAPL) += intel_rapl.o
+obj-$(CONFIG_INTEL_RAPL_CORE) += intel_rapl_common.o
+obj-$(CONFIG_INTEL_RAPL) += intel_rapl_msr.o
obj-$(CONFIG_IDLE_INJECT) += idle_inject.o