Skip to contentSkip to conversation

xtensa: remove unused setup_profiling_timer function

PATCH In review Anthony Iliopoulos 2 participants 2 messages Aug 20 – Aug 24 Tensilica Xtensa port (xtensa)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xtensa: remove unused setup_profiling_timer function

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.

---
 arch/xtensa/kernel/smp.c  | 7 -------
 arch/xtensa/kernel/time.c | 1 -
 2 files changed, 8 deletions(-)
arch/xtensa/kernel/smp.c +0 -7
index 94a23f100726..e4c25d0c2158 100644
@@ -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 {
arch/xtensa/kernel/time.c +0 -1
index 1c3dfea843ec..09fda6a3fe3b 100644
@@ -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>
Signature · 1 line
2.55.0
maintainer
#1 lore raw
Quoted 11 lines · Anthony Iliopoulos

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.

---
 arch/xtensa/kernel/smp.c  | 7 -------
 arch/xtensa/kernel/time.c | 1 -
 2 files changed, 8 deletions(-)

Thanks. Applied to my xtensa tree.

Quoted 38 lines
arch/xtensa/kernel/smp.c +0 -7
index 94a23f100726..e4c25d0c2158 100644
@@ -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 {
arch/xtensa/kernel/time.c +0 -2
index 1c3dfea843ec..09fda6a3fe3b 100644
@@ -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>
--
Quoted 2 lines

2.55.0

-- Max