/*
                 * console_unlock(); will print out the buffered messages
                 * for us.
-                */
-               printk_safe_enter_irqsave(flags);
-               /*
+                *
                 * We're about to replay the log buffer.  Only do this to the
                 * just-registered console to avoid excessive message spam to
                 * the already-registered consoles.
                exclusive_console_stop_seq = console_seq;
 
                /* Get a consistent copy of @syslog_seq. */
-               raw_spin_lock(&syslog_lock);
+               raw_spin_lock_irqsave(&syslog_lock, flags);
                console_seq = syslog_seq;
-               raw_spin_unlock(&syslog_lock);
-
-               printk_safe_exit_irqrestore(flags);
+               raw_spin_unlock_irqrestore(&syslog_lock, flags);
        }
        console_unlock();
        console_sysfs_notify();