From: Iso-H <jd@ts.ray.fi>
To: axp-list@redhat.com
Subject: RE: wrong cycle frequency
Date: Mon, 17 May 1999 13:47:53 +0300 (EET DST) [thread overview]
Message-ID: <Pine.LNX.3.96.990517132252.16368A-100000@linray.ts.ray.fi> (raw)
In-Reply-To: <B8FAB28E6A3469ABC2256773007DBA36.007B28DEC2256773@ray.fi>
On Mon, 17 May 1999, Konrad Podloucky wrote:
>
>
> On 15-May-99 Iso-H wrote:
> >
> > I have to reboot my SX164 several times before I get
> > right cycle frequency; usually frequency is something
> > between 350000000...533155104.
> > I think the system time is generated based on this value, isn't it?
> > "Visible" consequence about wrong value is that the system time runs
> > too fast; one minute is about 45 seconds "long".
> >
> Had (and sometimes still have) exactly the same problem with my SX.
> One of the more annoying consequences was that I had to click like hell to
> make
> a double-click!
>
I desided to use fixed value for "est_cycle_freq" in function
"time_init" to make sure "right" value. I just hope it won't
mess anything else.
btw. I think that this code won't work as it is meant to be
if unsigned long variables are used!?
unsigned long cycle_freq, diff, one_percent;
cycle_freq = hwrpb->cycle_freq;
one_percent = cycle_freq / 100;
diff = cycle_freq - est_cycle_freq;
if (diff < 0)
diff = -diff;
if (diff > one_percent) {
cycle_freq = est_cycle_freq;
printk("HWRPB cycle frequency bogus. Estimated %lu Hz\n",
cycle_freq);
}
else {
est_cycle_freq = 0;
}
> > This behaviour didn't occure until I upgraded to RHL-5.2 and
> > kernel 2.2.x; I am using 2.2.8 now.
> > Could anybody suggest me how to fix this problem?
> >
> I upgraded my milo to the 2.0.35 version and now this behaviour almost
> never
> showed up again.
>
> Konrad
>
>
Iso-H
--
next parent reply other threads:[~1999-05-17 11:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <B8FAB28E6A3469ABC2256773007DBA36.007B28DEC2256773@ray.fi>
1999-05-17 10:47 ` Iso-H [this message]
1999-05-15 18:03 wrong cycle frequency Iso-H
1999-05-15 20:46 ` Konrad Podloucky
1999-05-17 15:59 ` Richard Henderson
1999-05-17 17:29 ` Nikita Schmidt
1999-05-18 15:28 ` Richard Henderson
1999-05-18 19:59 ` Ivan Kokshaysky
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox