[PATCH 3/3] x86/aperfmperf: Clean up includes after removing IPI sampling

From: Chuyi Zhou

Date: Wed Sep 16 2026 - 10:50:12 EST


Commit f3eca381bd49 ("x86/aperfmperf: Replace arch_freq_get_on_cpu()")
removed the ad hoc sampling code, including its delays, ktime timestamps,
RCU idle checks, housekeeping checks and remote function calls. The
corresponding includes remain even though the file no longer uses those
interfaces directly.

Remove the obsolete includes and explicitly include the headers for
jiffies, sequence counters and workqueues used by the current code.

Signed-off-by: Chuyi Zhou <zhouchuyi@xxxxxxxxxxxxx>
---
arch/x86/kernel/cpu/aperfmperf.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/arch/x86/kernel/cpu/aperfmperf.c b/arch/x86/kernel/cpu/aperfmperf.c
index de6297b1284b..8cf9decea07c 100644
--- a/arch/x86/kernel/cpu/aperfmperf.c
+++ b/arch/x86/kernel/cpu/aperfmperf.c
@@ -7,15 +7,13 @@
* Author: Len Brown <len.brown@xxxxxxxxx>
*/
#include <linux/cpufreq.h>
-#include <linux/delay.h>
-#include <linux/ktime.h>
+#include <linux/jiffies.h>
#include <linux/math64.h>
#include <linux/percpu.h>
-#include <linux/rcupdate.h>
-#include <linux/sched/isolation.h>
#include <linux/sched/topology.h>
-#include <linux/smp.h>
+#include <linux/seqlock.h>
#include <linux/syscore_ops.h>
+#include <linux/workqueue.h>

#include <asm/cpu.h>
#include <asm/cpu_device_id.h>
--
2.20.1