From: Arnaldo Carvalho de Melo Date: Mon, 8 Aug 2016 18:05:46 +0000 (-0300) Subject: perf record: Use USEC_PER_MSEC X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0693e680d32e5c7415666ccfcff57ad4cd976294;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git perf record: Use USEC_PER_MSEC Instead of a naked 1000. 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-7v6be7jhvstbkvk3rsytjw0o@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index 6355902fbfc8..a3792e8c3e03 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c @@ -42,7 +42,7 @@ #include #include #include - +#include struct record { struct perf_tool tool; @@ -954,7 +954,7 @@ static int __cmd_record(struct record *rec, int argc, const char **argv) } if (opts->initial_delay) { - usleep(opts->initial_delay * 1000); + usleep(opts->initial_delay * USEC_PER_MSEC); perf_evlist__enable(rec->evlist); }