[U-Boot] [PATCH] cmd_time: merge run_command_and_time_it with cmd_process

2012-12-03 Thread Richard Genoud
As far as every arch has a get_timer function, run_command_and_time_it code can now disappear. Signed-off-by: Richard Genoud richard.gen...@gmail.com --- common/cmd_time.c | 33 ++--- common/command.c |4 +++- common/hush.c |2 +- common/main.c |

Re: [U-Boot] [PATCH] cmd_time: merge run_command_and_time_it with cmd_process

2012-12-03 Thread Stefan Roese
On 12/03/2012 04:28 PM, Richard Genoud wrote: As far as every arch has a get_timer function, run_command_and_time_it code can now disappear. Signed-off-by: Richard Genoud richard.gen...@gmail.com --- common/cmd_time.c | 33 ++--- common/command.c |4 +++-

Re: [U-Boot] [PATCH] cmd_time: merge run_command_and_time_it with cmd_process

2012-12-03 Thread Richard Genoud
2012/12/3 Stefan Roese s...@denx.de: @@ -543,7 +543,9 @@ enum command_ret_t cmd_process(int flag, int argc, char * const argv[], /* If OK so far, then do the command */ if (!rc) { + if (ticks) *ticks = get_timer(0); Newline please: if (ticks)

Re: [U-Boot] [PATCH] cmd_time: merge run_command_and_time_it with cmd_process

2012-12-03 Thread Che-liang Chiou
Acked-by: Che-Liang Chiou clch...@chromium.org On Mon, Dec 3, 2012 at 8:23 AM, Richard Genoud richard.gen...@gmail.com wrote: 2012/12/3 Stefan Roese s...@denx.de: @@ -543,7 +543,9 @@ enum command_ret_t cmd_process(int flag, int argc, char * const argv[], /* If OK so far, then do the