[PATCH] xtensa: remove unused setup_profiling_timer function
From: Anthony Iliopoulos
Date: Thu Aug 20 2026 - 08:39:52 EST
setup_profiling_timer() is not used by any code at this point. Since a
default weak implementation exists, there is no need to keep this
arch-specific definition around. Remove it along with the now-redundant
profile header includes.
Signed-off-by: Anthony Iliopoulos <ailiop@xxxxxxxx>
---
arch/xtensa/kernel/smp.c | 7 -------
arch/xtensa/kernel/time.c | 1 -
2 files changed, 8 deletions(-)
diff --git a/arch/xtensa/kernel/smp.c b/arch/xtensa/kernel/smp.c
index 94a23f100726..e4c25d0c2158 100644
--- a/arch/xtensa/kernel/smp.c
+++ b/arch/xtensa/kernel/smp.c
@@ -21,7 +21,6 @@
#include <linux/irq.h>
#include <linux/kdebug.h>
#include <linux/module.h>
-#include <linux/profile.h>
#include <linux/sched/mm.h>
#include <linux/sched/hotplug.h>
#include <linux/sched/task_stack.h>
@@ -459,12 +458,6 @@ void show_ipi_list(struct seq_file *p, int prec)
}
}
-int setup_profiling_timer(unsigned int multiplier)
-{
- pr_debug("setup_profiling_timer %d\n", multiplier);
- return 0;
-}
-
/* TLB flush functions */
struct flush_data {
diff --git a/arch/xtensa/kernel/time.c b/arch/xtensa/kernel/time.c
index 1c3dfea843ec..09fda6a3fe3b 100644
--- a/arch/xtensa/kernel/time.c
+++ b/arch/xtensa/kernel/time.c
@@ -23,7 +23,6 @@
#include <linux/module.h>
#include <linux/init.h>
#include <linux/irq.h>
-#include <linux/profile.h>
#include <linux/delay.h>
#include <linux/irqdomain.h>
#include <linux/sched_clock.h>
--
2.55.0