[U-Boot] [PATCH] nios2: Set CONFIG_SYS_HZ to 1000 all nios2 boards.

Scott McNutt smcnutt at psyent.com
Wed Mar 31 04:09:04 CEST 2010


> 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.

--Scott




More information about the U-Boot mailing list