Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Oct 2001 10:28:45 -0700 (PDT)
From:      Matt Sykes <matt-sykes@excite.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: kernel SMP timer bug persists
Message-ID:  <21341274.1002562125882.JavaMail.imail@patti.excite.com>

next in thread | raw e-mail | index | archive | help

An update: I tried this patch I found on google archives,

Index: clock.c
===================================================================
RCS file: /usr/cvs/FreeBSD/src/sys/i386/isa/clock.c,v
retrieving revision 1.149.2.3
diff -c -r1.149.2.3 clock.c
*** clock.c     2001/04/18 23:17:41     1.149.2.3
--- clock.c     2001/09/30 14:36:16
***************
*** 202,207 ****
--- 202,211 ----
  static void
  clkintr(struct clockframe frame)
  {
+ #if 1 /* Patch from Tor Egge to keep rtc running */
+       while (rtcin(RTC_INTR) & RTCIR_PERIOD)
+               statclock(&frame);
+ #endif
        if (timecounter->tc_get_timecount == i8254_get_timecount) {
                disable_intr();
                if (i8254_ticked)


and it seems to work, but it does appear to slow down the kernel some
--- a while loop inside clock interrupt (then again, I really don't
know much about it).

Forgot to mention everything runs fine with GENERIC kernel.

I didn't realize excite somehow put tabs at the beginning of each
line.  Here is the original message without tabs:

-----

kernel: 4.4-STABLE 
motherboard: P2L97-DS (dual PII 300MHZ) 

top and ps give 0.00% cpu usage for all processes. 

cvsupping didn't help. 

LINT config file says 

# Notes on APM 
#  The flags takes the following meaning for apm0: 
#    0x0020  Statclock is broken. 
#  If apm is omitted, some systems require sysctl -w 
kern.timecounter.method=1 
#  for correct timekeeping. 

but all combinations of setting apm on/off and 
setting timecounter.method on/off do not correct 
the problem (I reboot into single-user for 
sysctl then reboot again to be sure). 

Been talked about in google some, but no resolution 
from what I've seen.  There is a patch mentioned, 
but I am hoping for something less ad hoc; 
why wouldn't the patch appear from cvsup? 

Please CC my email if you reply. 

Thanks. 





_______________________________________________________
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?21341274.1002562125882.JavaMail.imail>