diff options
Diffstat (limited to 'debian/patches-rt/0008-printk-relocate-printk_delay.patch')
-rw-r--r-- | debian/patches-rt/0008-printk-relocate-printk_delay.patch | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/debian/patches-rt/0008-printk-relocate-printk_delay.patch b/debian/patches-rt/0008-printk-relocate-printk_delay.patch new file mode 100644 index 000000000..c3ecac792 --- /dev/null +++ b/debian/patches-rt/0008-printk-relocate-printk_delay.patch @@ -0,0 +1,65 @@ +From cc823542e44547d142c06b5ca0f56c76ae9f55b3 Mon Sep 17 00:00:00 2001 +From: John Ogness <john.ogness@linutronix.de> +Date: Mon, 30 Nov 2020 01:42:03 +0106 +Subject: [PATCH 008/158] printk: relocate printk_delay() +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/5.15/older/patches-5.15.10-rt24.tar.xz + +Move printk_delay() "as is" further up so that they can be used by +new functions in an upcoming commit. + +Signed-off-by: John Ogness <john.ogness@linutronix.de> +Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> +Signed-off-by: Thomas Gleixner <tglx@linutronix.de> +--- + kernel/printk/printk.c | 28 ++++++++++++++-------------- + 1 file changed, 14 insertions(+), 14 deletions(-) + +diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c +index c5f26a0ed1f8..6b8e6338b394 100644 +--- a/kernel/printk/printk.c ++++ b/kernel/printk/printk.c +@@ -1748,6 +1748,20 @@ SYSCALL_DEFINE3(syslog, int, type, char __user *, buf, int, len) + return do_syslog(type, buf, len, SYSLOG_FROM_READER); + } + ++int printk_delay_msec __read_mostly; ++ ++static inline void printk_delay(void) ++{ ++ if (unlikely(printk_delay_msec)) { ++ int m = printk_delay_msec; ++ ++ while (m--) { ++ mdelay(1); ++ touch_nmi_watchdog(); ++ } ++ } ++} ++ + /* + * Special console_lock variants that help to reduce the risk of soft-lockups. + * They allow to pass console_lock to another printk() call using a busy wait. +@@ -2002,20 +2016,6 @@ static u8 *__printk_recursion_counter(void) + local_irq_restore(flags); \ + } while (0) + +-int printk_delay_msec __read_mostly; +- +-static inline void printk_delay(void) +-{ +- if (unlikely(printk_delay_msec)) { +- int m = printk_delay_msec; +- +- while (m--) { +- mdelay(1); +- touch_nmi_watchdog(); +- } +- } +-} +- + static inline u32 printk_caller_id(void) + { + return in_task() ? task_pid_nr(current) : +-- +2.33.1 + |