summaryrefslogtreecommitdiffstats
path: root/arch/x86/events/amd/Makefile
diff options
context:
space:
mode:
authorKim Phillips <kim.phillips@amd.com>2021-08-17 17:10:47 -0500
committerIngo Molnar <mingo@kernel.org>2021-08-26 09:14:36 +0200
commit05485745ad482c1910a45f23a5c255f6a0df0f46 (patch)
tree67988c1c87f5c382031ab602cad24280a502198f /arch/x86/events/amd/Makefile
parent9164d9493a792682143af12b182be12d7c32b195 (diff)
downloadlinux-05485745ad482c1910a45f23a5c255f6a0df0f46.tar.bz2
perf/amd/uncore: Allow the driver to be built as a module
Add support to build the AMD uncore driver as a module. This is in order to facilitate development without having to reboot the kernel in most cases. Signed-off-by: Kim Phillips <kim.phillips@amd.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20210817221048.88063-8-kim.phillips@amd.com
Diffstat (limited to 'arch/x86/events/amd/Makefile')
-rw-r--r--arch/x86/events/amd/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/events/amd/Makefile b/arch/x86/events/amd/Makefile
index fe8795a67385..6cbe38d5fd9d 100644
--- a/arch/x86/events/amd/Makefile
+++ b/arch/x86/events/amd/Makefile
@@ -1,8 +1,9 @@
# SPDX-License-Identifier: GPL-2.0
-obj-$(CONFIG_CPU_SUP_AMD) += core.o uncore.o
+obj-$(CONFIG_CPU_SUP_AMD) += core.o
obj-$(CONFIG_PERF_EVENTS_AMD_POWER) += power.o
obj-$(CONFIG_X86_LOCAL_APIC) += ibs.o
+obj-$(CONFIG_PERF_EVENTS_AMD_UNCORE) += amd-uncore.o
+amd-uncore-objs := uncore.o
ifdef CONFIG_AMD_IOMMU
obj-$(CONFIG_CPU_SUP_AMD) += iommu.o
endif
-