]> Pileus Git - ~andy/linux/blobdiff - kernel/printk.c
ARM: 7809/1: perf: fix event validation for software group leaders
[~andy/linux] / kernel / printk.c
index 8212c1aef125f2d4290cbe0e55564d7e9a5a57de..69b0890ed7e54aa0679d1154056a7d26454fb7bd 100644 (file)
@@ -1369,9 +1369,9 @@ static int console_trylock_for_printk(unsigned int cpu)
                }
        }
        logbuf_cpu = UINT_MAX;
+       raw_spin_unlock(&logbuf_lock);
        if (wake)
                up(&console_sem);
-       raw_spin_unlock(&logbuf_lock);
        return retval;
 }
 
@@ -1921,7 +1921,7 @@ void resume_console(void)
  * called when a new CPU comes online (or fails to come up), and ensures
  * that any such output gets printed.
  */
-static int __cpuinit console_cpu_notify(struct notifier_block *self,
+static int console_cpu_notify(struct notifier_block *self,
        unsigned long action, void *hcpu)
 {
        switch (action) {