From: Paul E. McKenney Date: Tue, 16 Oct 2012 04:35:59 +0000 (-0700) Subject: printk: Fix scheduling-while-atomic problem in console_cpu_notify() X-Git-Tag: v3.2.56~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8db5f989887fe1d37757d02caf47cbc6cc49199;p=pandora-kernel.git printk: Fix scheduling-while-atomic problem in console_cpu_notify() commit 85eae82a0855d49852b87deac8653e4ebc8b291f upstream. The console_cpu_notify() function runs with interrupts disabled in the CPU_DYING case. It therefore cannot block, for example, as will happen when it calls console_lock(). Therefore, remove the CPU_DYING leg of the switch statement to avoid this problem. Signed-off-by: Paul E. McKenney Reviewed-by: Srivatsa S. Bhat Signed-off-by: Linus Torvalds Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed