This patch fixes scheduling latencies in vgacon_do_font_op(). The code is
protected by vga_lock already so it's safe to drop (and re-acquire) the
BKL.
Has been tested in the -VP patchset.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
#include <linux/spinlock.h>
#include <linux/ioport.h>
#include <linux/init.h>
+#include <linux/smp_lock.h>
#include <video/vga.h>
#include <asm/io.h>
charmap += 4 * cmapsz;
#endif
+ unlock_kernel();
spin_lock_irq(&vga_lock);
/* First, the Sequencer */
vga_wseq(state->vgabase, VGA_SEQ_RESET, 0x1);
vga_wattr(state->vgabase, VGA_AR_ENABLE_DISPLAY, 0);
}
spin_unlock_irq(&vga_lock);
+ lock_kernel();
return 0;
}