All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] s390: remove unused setup_profiling_timer function
@ 2026-08-20 12:46 Anthony Iliopoulos
  2026-08-20 12:52 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Anthony Iliopoulos @ 2026-08-20 12:46 UTC (permalink / raw)
  To: Heiko Carstens, Vasily Gorbik, Alexander Gordeev; +Cc: linux-s390, linux-kernel

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@suse.com>
---
 arch/s390/kernel/entry.h |  1 -
 arch/s390/kernel/irq.c   |  1 -
 arch/s390/kernel/smp.c   | 11 -----------
 arch/s390/kernel/time.c  |  1 -
 4 files changed, 14 deletions(-)

diff --git a/arch/s390/kernel/entry.h b/arch/s390/kernel/entry.h
index dc84ab497251..144a72ad7dc6 100644
--- a/arch/s390/kernel/entry.h
+++ b/arch/s390/kernel/entry.h
@@ -45,7 +45,6 @@ void do_ext_irq(struct pt_regs *regs);
 void do_restart(void *arg);
 void __init startup_init(void);
 void die(struct pt_regs *regs, const char *str);
-int setup_profiling_timer(unsigned int multiplier);
 
 struct s390_mmap_arg_struct;
 struct fadvise64_64_args;
diff --git a/arch/s390/kernel/irq.c b/arch/s390/kernel/irq.c
index c923496aa7b4..319e4e5bc9fe 100644
--- a/arch/s390/kernel/irq.c
+++ b/arch/s390/kernel/irq.c
@@ -13,7 +13,6 @@
 #include <linux/interrupt.h>
 #include <linux/seq_file.h>
 #include <linux/proc_fs.h>
-#include <linux/profile.h>
 #include <linux/export.h>
 #include <linux/kernel.h>
 #include <linux/ftrace.h>
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c
index 167c72803ccf..d5e58329a24b 100644
--- a/arch/s390/kernel/smp.c
+++ b/arch/s390/kernel/smp.c
@@ -980,17 +980,6 @@ void __init smp_setup_processor_id(void)
 	lc->spinlock_index = 0;
 }
 
-/*
- * the frequency of the profiling timer can be changed
- * by writing a multiplier value into /proc/profile.
- *
- * usually you want to run this on all CPUs ;)
- */
-int setup_profiling_timer(unsigned int multiplier)
-{
-	return 0;
-}
-
 static ssize_t cpu_configure_show(struct device *dev,
 				  struct device_attribute *attr, char *buf)
 {
diff --git a/arch/s390/kernel/time.c b/arch/s390/kernel/time.c
index 2b989bebd220..66191fdef101 100644
--- a/arch/s390/kernel/time.c
+++ b/arch/s390/kernel/time.c
@@ -32,7 +32,6 @@
 #include <linux/init.h>
 #include <linux/smp.h>
 #include <linux/types.h>
-#include <linux/profile.h>
 #include <linux/timex.h>
 #include <linux/notifier.h>
 #include <linux/clockchips.h>
-- 
2.55.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] s390: remove unused setup_profiling_timer function
  2026-08-20 12:46 [PATCH] s390: remove unused setup_profiling_timer function Anthony Iliopoulos
@ 2026-08-20 12:52 ` sashiko-bot
  0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-08-20 12:52 UTC (permalink / raw)
  To: Anthony Iliopoulos
  Cc: Heiko Carstens, linux-s390, Alexander Gordeev,
	Christian Borntraeger, Vasily Gorbik

> 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@suse.com>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260820124649.143863-1-ailiop@suse.com?part=1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-08-20 12:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-20 12:46 [PATCH] s390: remove unused setup_profiling_timer function Anthony Iliopoulos
2026-08-20 12:52 ` sashiko-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.