]> git.karo-electronics.de Git - karo-tx-linux.git/commit
printk: disable preemption for printk_sched
authorJohn Stultz <john.stultz@linaro.org>
Thu, 22 May 2014 00:43:35 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:43:35 +0000 (10:43 +1000)
commit3c3ad385a174d5d2490b2f9c6513b588dc8a1ddb
tree8d4e22ace26c064bc89afc15414afa36749be34c
parentb359d4b4c4a0e0f8e31a97751c13992e9b3e764d
printk: disable preemption for printk_sched

An earlier change in -mm (printk: remove separate printk_sched
buffers...), removed the printk_sched irqsave/restore lines since it was
safe for current users.  Since we may be expanding usage of
printk_sched(), disable preepmtion for this function to make it more
generally safe to call.

Signed-off-by: John Stultz <john.stultz@linaro.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Jiri Bohac <jbohac@suse.cz>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/printk/printk.c