]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
perf/x86: Move perf_event_amd.c ........... => x86/events/amd/core.c
authorBorislav Petkov <bp@suse.de>
Mon, 8 Feb 2016 16:09:05 +0000 (17:09 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 9 Feb 2016 09:23:49 +0000 (10:23 +0100)
We distribute those in vendor subdirs, starting with .../events/amd/.

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Link: http://lkml.kernel.org/r/1454947748-28629-3-git-send-email-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/Makefile
arch/x86/events/amd/core.c [moved from arch/x86/kernel/cpu/perf_event_amd.c with 99% similarity]
arch/x86/kernel/cpu/Makefile

index 3fad3ce1bbabb2a9a17f27bb0a73f1f5a4700be4..e0560b6dd77b34ecfd3e9d08d285672f37242e02 100644 (file)
@@ -1 +1,3 @@
 obj-y                  += core.o
+
+obj-$(CONFIG_CPU_SUP_AMD)               += amd/core.o
similarity index 99%
rename from arch/x86/kernel/cpu/perf_event_amd.c
rename to arch/x86/events/amd/core.c
index 58610539b0486ec30a357467e2425a4cdc5c5fd0..51b16583679c7b1f5214c1aa63f066050c590864 100644 (file)
@@ -5,7 +5,7 @@
 #include <linux/slab.h>
 #include <asm/apicdef.h>
 
-#include "perf_event.h"
+#include "../../kernel/cpu/perf_event.h"
 
 static __initconst const u64 amd_hw_cache_event_ids
                                [PERF_COUNT_HW_CACHE_MAX]
index 77000d54fcd1580511825a2ecdb3184a66ced570..d549b02953ca11a6e9c77279c7fb4b5e037f8a7c 100644 (file)
@@ -31,7 +31,7 @@ obj-$(CONFIG_CPU_SUP_TRANSMETA_32)    += transmeta.o
 obj-$(CONFIG_CPU_SUP_UMC_32)           += umc.o
 
 ifdef CONFIG_PERF_EVENTS
-obj-$(CONFIG_CPU_SUP_AMD)              += perf_event_amd.o perf_event_amd_uncore.o
+obj-$(CONFIG_CPU_SUP_AMD)              += perf_event_amd_uncore.o
 ifdef CONFIG_AMD_IOMMU
 obj-$(CONFIG_CPU_SUP_AMD)              += perf_event_amd_iommu.o
 endif