[U-Boot] [PATCH] [Timer]Remove calls to [get, reset]_timer outside arch/

Graeme Russ graeme.russ at gmail.com
Tue May 24 13:13:28 CEST 2011


On 24/05/11 20:54, Graeme Russ wrote:
> There is no need to use set_timer() and reset_timer() and there are build
> breakages occuring because of them (specifically cfi_flash). Remove any
> usage outside arch/ to fix build breakages and to prepare for complete
> removal
> 
> The Nios2 timer implentation updates every 10ms (increases in 10ms steps)
> and required a reset_timer() call before timing operations. For Nios2, call
> reset_timer() when get_timer() is called with a parameter value of 0
> 
> Signed-off-by: Graeme Russ <graeme.russ at gmail.com>
> 
> ---
> checkpatch complains about long lines and brace usage in the board specific
> flash.c files - They are deprecated and not worth fixing for style
> 
> Changes since V1:
>  - Fix typo in commit message
>  - Add reset_timer() to Nios2 get_timer(0)
> ---
>  arch/nios2/cpu/interrupts.c    |    4 ++++
>  board/BuS/EB+MCF-EV123/flash.c |   10 ++++++----
>  board/cobra5272/flash.c        |   10 ++++++----
>  board/idmr/flash.c             |   10 ++++++----
>  drivers/block/mg_disk.c        |    1 -
>  drivers/mtd/cfi_flash.c        |    2 --
>  6 files changed, 22 insertions(+), 15 deletions(-)

Argh - Sorry about the subject - It should be [PATCH v2]

Do I need to resend or will that make matters worse?

Regards,

Graeme


More information about the U-Boot mailing list