xtensa: remove unused setup_profiling_timer function
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.
Signed-off-by Anthony Iliopoulos <[email protected]>
--- arch/xtensa/kernel/smp.c | 7 ------- arch/xtensa/kernel/time.c | 1 - 2 files changed, 8 deletions(-)
arch/xtensa/kernel/smp.c +0 -7
@@ -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
@@ -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
Max Filippov
maintainerQuoted 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.Signed-off-by Anthony Iliopoulos <[email protected]>--- 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@@ -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@@ -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