aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAhmed S. Darwish <darwi@linutronix.de>2025-03-04 09:51:23 +0100
committerIngo Molnar <mingo@kernel.org>2025-03-04 11:17:33 +0100
commit6309ff98f00bad118812f7f250fbbee4867e88d3 (patch)
treebf74d2226033f7e2ec3362fe977e8de89e3076ba
parentx86/cacheinfo: Remove the P4 trace leftovers for real (diff)
downloadwireguard-linux-6309ff98f00bad118812f7f250fbbee4867e88d3.tar.xz
wireguard-linux-6309ff98f00bad118812f7f250fbbee4867e88d3.zip
x86/cacheinfo: Remove unnecessary headers and reorder the rest
Remove the headers at cacheinfo.c that are no longer required. Alphabetically reorder what remains since more headers will be included in further commits. Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20250304085152.51092-13-darwi@linutronix.de
-rw-r--r--arch/x86/kernel/cpu/cacheinfo.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/x86/kernel/cpu/cacheinfo.c b/arch/x86/kernel/cpu/cacheinfo.c
index eccffe2ea06c..b3a520959b51 100644
--- a/arch/x86/kernel/cpu/cacheinfo.c
+++ b/arch/x86/kernel/cpu/cacheinfo.c
@@ -8,21 +8,19 @@
* Andi Kleen / Andreas Herrmann : CPUID4 emulation on AMD.
*/
-#include <linux/slab.h>
#include <linux/cacheinfo.h>
+#include <linux/capability.h>
#include <linux/cpu.h>
#include <linux/cpuhotplug.h>
-#include <linux/sched.h>
-#include <linux/capability.h>
-#include <linux/sysfs.h>
#include <linux/pci.h>
#include <linux/stop_machine.h>
+#include <linux/sysfs.h>
-#include <asm/cpufeature.h>
-#include <asm/cacheinfo.h>
#include <asm/amd_nb.h>
-#include <asm/smp.h>
+#include <asm/cacheinfo.h>
+#include <asm/cpufeature.h>
#include <asm/mtrr.h>
+#include <asm/smp.h>
#include <asm/tlbflush.h>
#include "cpu.h"