Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jan 2005 21:46:15 +0100
From:      Arjan Van Leeuwen <avleeuwen@gmail.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        current@freebsd.org
Subject:   Re: [PATCH] Use local APIC timer to drive kernel clocks
Message-ID:  <d86b48730501161246620cd9bc@mail.gmail.com>
In-Reply-To: <200501141546.31386.jhb@FreeBSD.org>
References:  <200501141546.31386.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 14 Jan 2005 15:46:31 -0500, John Baldwin <jhb@freebsd.org> wrote:
> I have a patch that uses the local APIC timer to drive the kernel clocks
> (hardclock, statclock, and profclock) instead of the ISA timer and RTC.  The
> advantage of this change is that SMP machines can stop using IPIs to bounce
> clock interrupts around all the time.  Currently the code will always use the
> local APIC timer if an APIC is being used, but it might be desirable to only
> use the timer if we have more than one CPU.  Some caveats and details:
> 
(...)
> 
> Please test and let me know if there are any regressions.  Thanks.  Patch is
> at http://www.FreeBSD.org/~jhb/patches/lapic_timer.patch

Yes! My SMP system had a big problem with the clock (it did 500Hz when
it should do 1000Hz, 50Hz when it should do 100Hz, etc...) that caused
all kinds of weird problems and miscalculations. This patch fixes it!

Thanks,

Arjan

> 
> --
> John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
> "Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>



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