@@ -301,12 +301,13 @@ static inline unsigned short *screenpos(const struct vc_data *vc, int offset,
}
/* Called from the keyboard irq path.. */
+static DEFINE_SPINLOCK(scrolldelta_lock);
+
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 */
+ spin_lock(&scrolldelta_lock);
scrollback_delta += lines;
+ spin_unlock(&scrolldelta_lock);
schedule_console_callback();
}