Re: 2.1.105: console speedup patch ({delete,insert}_char)

Peter Samuelson (psamuels@sampo.creighton.edu)
Fri, 12 Jun 1998 00:25:12 -0500 (CDT)


> This diff fixes problem with console, which was delaying for long
> enough to stop for example sound playing while executing delete_char
> and insert_char in loops (as executed by ESC[nP and ESC[n@ escape
> sequences, where 'n' is number of chars to delete/insert).

I see this patch made it into 2.1.106pre, but I think you also want the
following. (Untested.)

Peter Samuelson
<psamuels@sampo.creighton.edu>

--- linux/drivers/char/console.c.106pre Fri Jun 12 00:20:30 1998
+++ linux/drivers/char/console.c Thu Jun 11 23:26:49 1998
@@ -1257,8 +1257,9 @@
static void insert_char(int currcons, unsigned int nr)
{
unsigned int i = x;
- unsigned short * p, * q = (unsigned short *) pos;
+ unsigned short * p, * q;

+ p = q = (unsigned short *) pos;
while (i++ <= video_num_columns - nr) {
scr_writew(scr_readw(p), p + nr);
p++;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu