From: Pavel Machek <pavel@suse.cz>
To: Andrew Morton <akpm@zip.com.au>,
kernel list <linux-kernel@vger.kernel.org>,
vojtech@suse.cz,
Rusty trivial patch monkey Russell <trivial@rustcorp.com.au>
Subject: Alt-arrow console switch sometimes dropped
Date: Sat, 3 Jan 2004 14:37:46 +0100 [thread overview]
Message-ID: <20040103133746.GA516@elf.ucw.cz> (raw)
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
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))
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
next reply other threads:[~2004-01-03 13:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-03 13:37 Pavel Machek [this message]
2004-01-07 23:55 ` Alt-arrow console switch sometimes dropped Rusty Russell
2004-01-09 18:10 ` Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040103133746.GA516@elf.ucw.cz \
--to=pavel@suse.cz \
--cc=akpm@zip.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=trivial@rustcorp.com.au \
--cc=vojtech@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox