Skip to contentSkip to conversation

LoongArch: remove unused setup_profiling_timer function

PATCH Applied Anthony Iliopoulos 2 participants 2 messages Aug 20 – Sep 5 LoongArch

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 LoongArch: 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/loongarch/kernel/smp.c | 8 --------
 1 file changed, 8 deletions(-)
arch/loongarch/kernel/smp.c +0 -8
index d4b5d1b6bb01..11f54837f56c 100644
@@ -14,7 +14,6 @@
 #include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/irq_work.h>
-#include <linux/profile.h>
 #include <linux/seq_file.h>
 #include <linux/smp.h>
 #include <linux/threads.h>
@@ -716,13 +715,6 @@ void smp_send_stop(void)
 	smp_call_function(stop_this_cpu, NULL, 0);
 }
 
-#ifdef CONFIG_PROFILING
-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
maintainer Applied
#1 lore raw

Applied, thanks.

Huacai

Quoted 40 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/loongarch/kernel/smp.c | 8 --------
 1 file changed, 8 deletions(-)
arch/loongarch/kernel/smp.c +0 -9
index d4b5d1b6bb01..11f54837f56c 100644
@@ -14,7 +14,6 @@
 #include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/irq_work.h>
-#include <linux/profile.h>
 #include <linux/seq_file.h>
 #include <linux/smp.h>
 #include <linux/threads.h>
@@ -716,13 +715,6 @@ void smp_send_stop(void)
        smp_call_function(stop_this_cpu, NULL, 0);
 }
 
-#ifdef CONFIG_PROFILING
-int setup_profiling_timer(unsigned int multiplier)
-{
-       return 0;
-}
-#endif
-
 static void flush_tlb_all_ipi(void *info)
 {
        local_flush_tlb_all();
--

2.55.0