diff options
| author | John Ogness <john.ogness@linutronix.de> | 2025-11-21 11:26:00 +0106 |
|---|---|---|
| committer | Petr Mladek <pmladek@suse.com> | 2025-11-24 15:44:48 +0100 |
| commit | 66e7c1e0ee08cfb6db64f8f3f6e5a3cc930145c8 (patch) | |
| tree | dac616615aa768d90ba9e3481289040517485420 /tools/lib/python/kdoc/kdoc_files.py | |
| parent | 26873e3e7f0cb26c45e6ad63656f9fe36b2aa31b (diff) | |
printk: Avoid irq_work for printk_deferred() on suspend
With commit ("printk: Avoid scheduling irq_work on suspend") the
implementation of printk_get_console_flush_type() was modified to
avoid offloading when irq_work should be blocked during suspend.
Since printk uses the returned flush type to determine what
flushing methods are used, this was thought to be sufficient for
avoiding irq_work usage during the suspend phase.
However, vprintk_emit() implements a hack to support
printk_deferred(). In this hack, the returned flush type is
adjusted to make sure no legacy direct printing occurs when
printk_deferred() was used.
Because of this hack, the legacy offloading flushing method can
still be used, causing irq_work to be queued when it should not
be.
Adjust the vprintk_emit() hack to also consider
@console_irqwork_blocked so that legacy offloading will not be
chosen when irq_work should be blocked.
Link: https://lore.kernel.org/lkml/87fra90xv4.fsf@jogness.linutronix.de
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Fixes: 26873e3e7f0c ("printk: Avoid scheduling irq_work on suspend")
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'tools/lib/python/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions
