aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpiutil.c
diff options
context:
space:
mode:
authorJohn Ogness <[email protected]>2024-09-04 14:11:27 +0206
committerPetr Mladek <[email protected]>2024-09-04 15:56:32 +0200
commit5c586baa60e46d9fccd04f04e16f8a50b2fbc1af (patch)
tree75b481dc75d82501907172afb48e1666dac2be97 /lib/crypto/mpi/mpiutil.c
parent9b79a3d0d64abae92457cb830baa6c6a717778b0 (diff)
printk: nbcon: Use thread callback if in task context for legacy
When printing via console_lock, the write_atomic() callback is used for nbcon consoles. However, if it is known that the current context is a task context, the write_thread() callback can be used instead. Using write_thread() instead of write_atomic() helps to reduce large disabled preemption regions when the device_lock does not disable preemption. This is mainly a preparatory change to allow avoiding write_atomic() completely during normal operation if boot consoles are registered. As a side-effect, it also allows consolidating the printing code for legacy printing and the kthread printer. Signed-off-by: John Ogness <[email protected]> Reviewed-by: Petr Mladek <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Petr Mladek <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions