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

Matija Nalis (mnalis@public.srce.hr)
Fri, 12 Jun 1998 10:07:26 +0200


On Fri, Jun 12, 1998 at 12:25:12AM -0500, Peter Samuelson wrote:
> > 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;

Yes, that is intended behaviour. Thanks for fix.
(don't know why it worked correctly in my tests)

Matija

-- 
Opinions above are GNU-copylefted.

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