In message <20040103133746.GA516 _at_ elf.ucw.cz> you write: > Hi! > > Alt-arrow console switch is routinely dropped under high load. This > patch fixes it: alt-arrow has to start from console _we want to switch > to_, if switch is already pending. Please apply, > Pavel Sure, but a comment would be nice: /* Currently switching? Queue this next switch relative to that. */ Thanks, Trivial Rusty. > Index: linux.new/drivers/char/keyboard.c > =================================================================== > --- linux.new.orig/drivers/char/keyboard.c 2003-12-25 13:28:51.000000000 +0100 > +++ linux.new/drivers/char/keyboard.c 2003-12-25 13:29:08.000000000 +0100 > @@ -507,8 +528,12 @@ > static void fn_inc_console(struct vc_data *vc, struct pt_regs *regs) > { > int i; > + int cur = fg_console; > > - for (i = fg_console+1; i != fg_console; i++) { > + if (want_console != -1) > + cur = want_console; > + > + for (i = cur+1; i != cur; i++) { > if (i == MAX_NR_CONSOLES) > i = 0; > if (vc_cons_allocated(i)) > -- Anyone who quotes me in their sig is an idiot. -- Rusty Russell. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo _at_ vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Follow-Ups:
- Re: Alt-arrow console switch sometimes droppedPavel Machek
- Alt-arrow console switch sometimes droppedPavel Machek
- Prev by Date: [Bug 1807] New: Kernel Panic with dmx3191d (Fatal exception in Interrupt Handler)
- Next by Date: Re: s3 sleep: Kill obsolete debugging code
- Previous by thread: Alt-arrow console switch sometimes dropped
- Next by thread: Re: Alt-arrow console switch sometimes dropped
- Indexes:[Main][Thread]