The virtual console layer uses the BKL for various things that don't really
need it. Clean them out.
Signed-off-by: Alan Cox <alan@linux.intel.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
 #include <linux/selection.h>
 #include <linux/tiocl.h>
 #include <linux/console.h>
+#include <linux/smp_lock.h>
 
 /* Don't take this from <ctype.h>: 011-015 on the screen aren't spaces */
 #define isspace(c)     ((c) == ' ')
        struct  tty_ldisc *ld;
        DECLARE_WAITQUEUE(wait, current);
 
+       lock_kernel();
+
        acquire_console_sem();
        poke_blanked_console();
        release_console_sem();
        __set_current_state(TASK_RUNNING);
 
        tty_ldisc_deref(ld);
+       unlock_kernel();
        return 0;
 }
 
        return p;
 }
 
+/* Called  from the keyboard irq path.. */
 static inline void scrolldelta(int lines)
 {
+       /* FIXME */
+       /* scrolldelta needs some kind of consistency lock, but the BKL was
+          and still is not protecting versus the scheduled back end */
        scrollback_delta += lines;
        schedule_console_callback();
 }
                return -EFAULT;
        ret = 0;
 
-       lock_kernel();
-
        switch (type)
        {
                case TIOCL_SETSEL:
                        ret = -EINVAL;
                        break;
        }
-       unlock_kernel();
        return ret;
 }