From: Thomas Chou Date: Wed, 31 Mar 2010 11:04:27 +0800 Subject: [U-Boot] [PATCH] nios2: Set CONFIG_SYS_HZ to 1000 all nios2 boards. In-Reply-To: <4BB2AEC0.7000501@psyent.com> References: <4BB2AEC0.7000501@psyent.com> Message-ID: <4BB2BBBB.4000702@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 03/31/2010 10:09 AM, Scott McNutt wrote: >> So it might be cleaner to let user define the HZ as the actual tick rate >> and increase the tick count by one in the tmr_isr. >> > This was discussed/debated thoroughly over the past year: > CONFIG_SYS_HZ at 1000 is mandatory. > > >> - timestamp += CONFIG_SYS_NIOS_TMRMS; >> + timestamp++; >> > This means that each interrupt is exactly 1 msec. That's not what > was intended and not what was implemented Forcing the interrupt > period to 1 msec is an unnecessary constraint. If you want the isr > to increment the timestamp by 1, then set CONFIG_SYS_NIOS_TMRMS to 1 > ... and set your timer accordingly. > > - > Hi Scott, Thanks for the explanation. I will set HZ to 1000 and TMRMS to 1. I tried to follow your patch "nios2: Set CONFIG_SYS_HZ to 1000 all nios2 boards". But got cfi flash buffer write timeout on EP2C35 board. If I set TMRMS to 1, it works with HZ at 100, 1000 and 2000. Best regards, Thomas