mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ion Badulescu <ionut@moisil.cs.columbia.edu>
To: Richard A Nelson <cowboy@vnet.ibm.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.4.1-ac$x and timer oddities
Date: Thu, 15 Feb 2001 15:27:53 -0800	[thread overview]
Message-ID: <200102152327.f1FNRrZ04871@moisil.dev.hydraweb.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0102151510010.2238-100000@badlands.lexington.ibm.com>

On Thu, 15 Feb 2001 15:57:09 -0500 (EST), Richard A Nelson <cowboy@vnet.ibm.com> wrote:
> The machine boots and runs for some time without problems, but then
> something makes the clock *very* jittery:
> 
> *  xscreensaver kicks in after almost no time (even betwixt quick
>    keystrokes and in the middle of mouse movement), and the password prompt
>    timer zips down to nothing post haste
> *  neworking apps gets a time-out on almost all connections (netscape, ftp, etc)
> *  It can take quite a while for focus to change after moving the mouse
> *  The machine will hang (hard - CAD or SYSREQ B do nothing) after a
>    variable amount of time (>8 hours)
> 
> I think this may've even started at 2.4.0, but seems to have gotten
> worse recently.

This patch (from Vojtech Pavlik) might help. Alan included it in 2.2.19pre,
so I'm not sure why he didn't add it to 2.4ac as well.

If it doesn't apply cleanly, do it by hand.

Hope this helps,
Ion

-- 
  It is better to keep your mouth shut and be thought a fool,
            than to open it and remove all doubt.
------------------------
--- linux-2.2.17/arch/i386/kernel/time.c.old	Sat Oct 28 00:04:09 2000
+++ linux-2.2.17/arch/i386/kernel/time.c	Sat Oct 28 00:02:10 2000
@@ -452,6 +452,14 @@
 		count = inb_p(0x40);    /* read the latched count */
 		count |= inb(0x40) << 8;
 
+		if (count > LATCH-1) {
+			outb_p(0x34, 0x43);
+		        outb_p(LATCH & 0xff, 0x40);
+			outb(LATCH >> 8, 0x40);
+			count = LATCH - 1;
+		}
+
+
 		count = ((LATCH-1) - count) * TICK_SIZE;
 		delay_at_last_interrupt = (count + LATCH/2) / LATCH;
 	}

      reply	other threads:[~2001-02-15 23:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-15 20:57 Richard A Nelson
2001-02-15 23:27 ` Ion Badulescu [this message]

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=200102152327.f1FNRrZ04871@moisil.dev.hydraweb.com \
    --to=ionut@moisil.cs.columbia.edu \
    --cc=cowboy@vnet.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®