Skip to content
Commit cf899580 authored by Steven Rostedt's avatar Steven Rostedt
Browse files

printk: Do not disable preemption calling console_unlock() in PREEMPT_RT



A stable backport placed open coded preempt_disable() around console_unlock()
to prevent delays in output of printk() due to a task holding the console
lock being preempted. But most consoles are not PREEMPT_RT safe, thus
it needs to be preemptable when PREEMPT_RT is enabled.

Replace the open coded preempt_disable() with migrate_disable() which
is a preempt_disable() on non PREEMPT_RT, but just disables migration
on PREEMPT_RT, even though it doesn't really depend on that.

Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 0b426ba3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment