diff options
Diffstat (limited to 'debian/patches-rt/0004_sched_cleanup_might_sleep_printks.patch')
-rw-r--r-- | debian/patches-rt/0004_sched_cleanup_might_sleep_printks.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/debian/patches-rt/0004_sched_cleanup_might_sleep_printks.patch b/debian/patches-rt/0004_sched_cleanup_might_sleep_printks.patch new file mode 100644 index 000000000..b376ae4d4 --- /dev/null +++ b/debian/patches-rt/0004_sched_cleanup_might_sleep_printks.patch @@ -0,0 +1,39 @@ +From: Thomas Gleixner <tglx@linutronix.de> +Subject: sched: Cleanup might_sleep() printks +Date: Thu, 23 Sep 2021 18:54:40 +0200 +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/5.15/older/patches-5.15.3-rt21.tar.xz + +Convert them to pr_*(). No functional change. + +Signed-off-by: Thomas Gleixner <tglx@linutronix.de> +Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> +Link: https://lore.kernel.org/r/20210923165358.117496067@linutronix.de +--- + kernel/sched/core.c | 14 ++++++-------- + 1 file changed, 6 insertions(+), 8 deletions(-) + +--- a/kernel/sched/core.c ++++ b/kernel/sched/core.c +@@ -9516,16 +9516,14 @@ void __might_resched(const char *file, i + /* Save this before calling printk(), since that will clobber it: */ + preempt_disable_ip = get_preempt_disable_ip(current); + +- printk(KERN_ERR +- "BUG: sleeping function called from invalid context at %s:%d\n", +- file, line); +- printk(KERN_ERR +- "in_atomic(): %d, irqs_disabled(): %d, non_block: %d, pid: %d, name: %s\n", +- in_atomic(), irqs_disabled(), current->non_block_count, +- current->pid, current->comm); ++ pr_err("BUG: sleeping function called from invalid context at %s:%d\n", ++ file, line); ++ pr_err("in_atomic(): %d, irqs_disabled(): %d, non_block: %d, pid: %d, name: %s\n", ++ in_atomic(), irqs_disabled(), current->non_block_count, ++ current->pid, current->comm); + + if (task_stack_end_corrupted(current)) +- printk(KERN_EMERG "Thread overran stack, or stack corrupted\n"); ++ pr_emerg("Thread overran stack, or stack corrupted\n"); + + debug_show_held_locks(current); + if (irqs_disabled()) |