diff options
Diffstat (limited to 'kernel/printk.c')
| -rw-r--r-- | kernel/printk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/printk.c b/kernel/printk.c index 8212c1aef125..69b0890ed7e5 100644 --- a/kernel/printk.c +++ b/kernel/printk.c | |||
| @@ -1369,9 +1369,9 @@ static int console_trylock_for_printk(unsigned int cpu) | |||
| 1369 | } | 1369 | } |
| 1370 | } | 1370 | } |
| 1371 | logbuf_cpu = UINT_MAX; | 1371 | logbuf_cpu = UINT_MAX; |
| 1372 | raw_spin_unlock(&logbuf_lock); | ||
| 1372 | if (wake) | 1373 | if (wake) |
| 1373 | up(&console_sem); | 1374 | up(&console_sem); |
| 1374 | raw_spin_unlock(&logbuf_lock); | ||
| 1375 | return retval; | 1375 | return retval; |
| 1376 | } | 1376 | } |
| 1377 | 1377 | ||
| @@ -1921,7 +1921,7 @@ void resume_console(void) | |||
| 1921 | * called when a new CPU comes online (or fails to come up), and ensures | 1921 | * called when a new CPU comes online (or fails to come up), and ensures |
| 1922 | * that any such output gets printed. | 1922 | * that any such output gets printed. |
| 1923 | */ | 1923 | */ |
| 1924 | static int __cpuinit console_cpu_notify(struct notifier_block *self, | 1924 | static int console_cpu_notify(struct notifier_block *self, |
| 1925 | unsigned long action, void *hcpu) | 1925 | unsigned long action, void *hcpu) |
| 1926 | { | 1926 | { |
| 1927 | switch (action) { | 1927 | switch (action) { |
