From 34765e88532dfe0f8210baba9f9482de470d2202 Mon Sep 17 00:00:00 2001 From: Richard Genoud Date: Mon, 3 Dec 2012 06:28:28 +0000 Subject: cmd_time: merge run_command_and_time_it with cmd_process As far as every arch has a get_timer function, run_command_and_time_it code can now disappear. Signed-off-by: Richard Genoud Acked-By: Che-Liang Chiou [trini: s/ulong/unsigned long/ in command.h portion] Signed-off-by: Tom Rini --- include/command.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/command.h') diff --git a/include/command.h b/include/command.h index 476e7cf..3785eb9 100644 --- a/include/command.h +++ b/include/command.h @@ -139,10 +139,12 @@ enum command_ret_t { * @param repeatable This function sets this to 0 if the command is not * repeatable. If the command is repeatable, the value * is left unchanged. + * @param ticks If ticks is not null, this function set it to the + * number of ticks the command took to complete. * @return 0 if the command succeeded, 1 if it failed */ int cmd_process(int flag, int argc, char * const argv[], - int *repeatable); + int *repeatable, unsigned long *ticks); #endif /* __ASSEMBLY__ */ -- cgit v1.1