From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 20918 invoked from network); 17 May 1999 11:25:58 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 17 May 1999 11:25:58 -0000 Received: from melvin.eunet.fi (melvin.eunet.fi [193.66.1.146]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id GAA23052 for ; Mon, 17 May 1999 06:48:00 -0400 Received: from linray.ts.ray.fi (ws.ray.fi [193.64.14.224]) by melvin.eunet.fi (8.9.3/8.9.3-KJN) with ESMTP id NAA02423 for ; Mon, 17 May 1999 13:47:56 +0300 (EET DST) Received: from localhost (jd@localhost) by linray.ts.ray.fi (8.7.5/8.7.3) with SMTP id NAA03154 for ; Mon, 17 May 1999 13:47:53 +0300 X-Authentication-Warning: linray.ts.ray.fi: jd owned process doing -bs Date: Mon, 17 May 1999 13:47:53 +0300 (EET DST) From: Iso-H To: axp-list@redhat.com Subject: RE: wrong cycle frequency In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 --