[GIT PULL] printk for 4.12
From: Petr Mladek
Date: Tue May 02 2017 - 09:52:40 EST
Linus,
please pull the latest printk changes from
git://git.kernel.org/pub/scm/linux/kernel/git/pmladek/printk.git for-linus
==========
- There is a situation when early console is not deregistered
because the preferred one matches a wrong entry. It caused
messages to appear twice.
This is 2nd attempt to fix it. The first one was wrong,
see the commit c6c7d83b9c9e6a8b3e6 ('Revert "console: don't
prefer first registered if DT specifies stdout-path"').
The fix is coupled with some small code clean up. Well,
the console registration code would deserve a big one.
We need to think about it.
- Do not lose information about the preemtive context when
the console semaphore is re-taken.
- Do not block CPU hotplug when someone else is already
pushing messages to the console.
----------------------------------------------------------------
Aleksey Makarov (3):
printk: fix name/type/scope of preferred_console var
printk: rename selected_console -> preferred_console
printk: fix double printing with earlycon
Petr Mladek (1):
printk: Correctly handle preemption in console_unlock()
Sergey Senozhatsky (1):
printk: use console_trylock() in console_cpu_notify()
kernel/printk/printk.c | 81 ++++++++++++++++++++++++++++++++++----------------
1 file changed, 56 insertions(+), 25 deletions(-)
Best Regards,
Petr Mladek