Make printk() console semaphore accesses sensible
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 25 Mar 2008 02:25:08 +0000 (19:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 25 Mar 2008 02:25:08 +0000 (19:25 -0700)
The printk() logic on when/how to get the console semaphore was
unreadable, this splits the code up into a few helper functions and
makes it easier to follow what is going on.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/printk.c

diff --cc kernel/printk.c
Simple merge