Date: Thu, 27 Dec 2012 18:49:39 -0800 From: Oleksandr Tymoshenko <gonzo@freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r244758 - head/sys/arm/broadcom/bcm2835 Message-ID: <50DD08C3.3080801@freebsd.org> In-Reply-To: <201212280138.qBS1chFm022181@svn.freebsd.org> References: <201212280138.qBS1chFm022181@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 12/27/2012 5:38 PM, 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. > It's not 32, it's ~4294 seconds Spotted by: Ian Lepore
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50DD08C3.3080801>