From: Arnaldo Carvalho de Melo Date: Mon, 8 Aug 2016 18:37:58 +0000 (-0300) Subject: perf top: Use MSEC_PER_SEC X-Git-Tag: v5.15~12797^2~14^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b9c4b0f40d22d4b1d29540f5faf6ca4269f25848;p=platform%2Fkernel%2Flinux-starfive.git perf top: Use MSEC_PER_SEC Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Steven Rostedt Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-iof4j6mutyogdeie1sj98dhv@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index 418ed94..a3223aa 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c @@ -68,6 +68,7 @@ #include #include +#include #include static volatile int done; @@ -624,7 +625,7 @@ static void *display_thread(void *arg) display_setup_sig(); pthread__unblock_sigwinch(); repeat: - delay_msecs = top->delay_secs * 1000; + delay_msecs = top->delay_secs * MSEC_PER_SEC; set_term_quiet_input(&save); /* trash return*/ getc(stdin);