svn commit: r244758 - head/sys/arm/broadcom/bcm2835

Stephen Hurd shurd at sasktel.net
Fri Dec 28 15:33:32 UTC 2012


Oleksandr Tymoshenko wrote:
> Author: gonzo
> Date: Fri Dec 28 01:38:43 2012
> New Revision: 244758
> URL: http://svnweb.freebsd.org/changeset/base/244758
>
> Log:
>   Fix event timer on Raspberry Pi
>   
>   - Disable interrupt when updating compare value in order to
>      make this operation atomical
>   
>   - Increase minimum period for event timer. Systimer on BCM2835
>       is compare timer, so if minimum period is too small it might
>       be less then fraction of time between "read current value" and
>       "set compare timer" operations. It means that when timer is armed
>       actual counter value is more then compare value and it will take
>       whole cycle (~32sec for 1MHz timer) to fire interrupt.
>   
>   Submitted by:	Daisuke Aoyama <aoyama at peach.ne.jp>

This seems to have fixed the long hang issue I was having... package
building ran overnight without the clock losing time or any hangs occuring.

Thanks!


More information about the freebsd-arm mailing list