diff options
Diffstat (limited to 'kernel/printk.c')
-rw-r--r-- | kernel/printk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/printk.c b/kernel/printk.c index ee79f14db358..22e070f3470a 100644 --- a/kernel/printk.c +++ b/kernel/printk.c | |||
@@ -1914,7 +1914,8 @@ static int __cpuinit console_cpu_notify(struct notifier_block *self, | |||
1914 | */ | 1914 | */ |
1915 | void console_lock(void) | 1915 | void console_lock(void) |
1916 | { | 1916 | { |
1917 | BUG_ON(in_interrupt()); | 1917 | might_sleep(); |
1918 | |||
1918 | down(&console_sem); | 1919 | down(&console_sem); |
1919 | if (console_suspended) | 1920 | if (console_suspended) |
1920 | return; | 1921 | return; |