mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Loosing timer interrupts with ACPI
@ 2003-06-16  4:19 Serguei Miridonov
  0 siblings, 0 replies; only message in thread
From: Serguei Miridonov @ 2003-06-16  4:19 UTC (permalink / raw)
  To: linux-kernel

When periodically reading /proc/acpi/battery/BAT0/info (once 
per second), running "adjtimex --compare=10000" indicates 
slight slowing down of the system clock. It seems that 
reading battery info may lead to loosing timer interrupts.

System: Compaq Presario 900Z notebook
Kernel: 2.4.21-ac1

First time the system clock drift was noticed when running 
akpi applet for KDE: ntpdate time corrections were too 
large. Then I've found that it happens when simply 

To test this, run

adjtimex --compare=10000

in first xterm, and the following script on another xterm:

#!/bin/sh

for i in `find /proc/acpi/battery -type f`
do
    echo $i
    count=0
    while [ $count -lt 30 ]
    do
        cat $i > /dev/null 2>/dev/null
        sleep 1
        count=$[count+1]
    done
done

Serguei Miridonov.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-06-16  4:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-16  4:19 Loosing timer interrupts with ACPI Serguei Miridonov

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®