lkml.org 
[lkml]   [2001]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 2.4.1-ac$x and timer oddities
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;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:15    [W:0.048 / U:5.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site