MIPS: remove unused setup_profiling_timer function
PATCH 1/1 MIPS: 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/mips/kernel/smp.c | 9 --------- 1 file changed, 9 deletions(-)
arch/mips/kernel/smp.c +0 -9
@@ -10,7 +10,6 @@#include <linux/delay.h> #include <linux/init.h> #include <linux/interrupt.h> -#include <linux/profile.h> #include <linux/smp.h> #include <linux/spinlock.h> #include <linux/threads.h>
@@ -487,14 +486,6 @@ int __cpu_up(unsigned int cpu, struct task_struct *tidle) }#endif -#ifdef CONFIG_PROFILING -/* Not really SMP stuff ... */ -int setup_profiling_timer (unsigned int multiplier) -{ -return 0 ; -} -#endif -static void flush_tlb_all_ipi (void *info) {local_flush_tlb_all ();
Signature · 1 line
2.55.0
Thomas Bogendoerfer
maintainerQuoted 23 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/mips/kernel/smp.c | 9 --------- 1 file changed, 9 deletions(-)arch/mips/kernel/smp.c +0
-1@@ -10,7 +10,6 @@#include <linux/delay.h> #include <linux/init.h> #include <linux/interrupt.h> -#include <linux/profile.h> #include <linux/smp.h> #include <linux/spinlock.h> #include <linux/threads.h>
arch/mips/kernel/smp.c int __cpu_up(unsigned int cpu, struct task_struct *tidle) · line 496
Quoted 10 lines
arch/mips/kernel/smp.c +0
-7@@ -487,14 +486,6 @@ int __cpu_up(unsigned int cpu, struct task_struct *tidle) }#endif -#ifdef CONFIG_PROFILING -/* Not really SMP stuff ... */ -int setup_profiling_timer (unsigned int multiplier) -{ -return 0 ; -} -#endif
the weak implementation returns -EINVAL, which then fails the write_profile() call. This is a different bahvavior then the code above. Do I miss something ?
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]