tools lib traceevent: Use USECS_PER_SEC instead of hardcoded number
authorSteven Rostedt <rostedt@goodmis.org>
Tue, 22 Nov 2016 18:00:31 +0000 (15:00 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 23 Nov 2016 13:44:02 +0000 (10:44 -0300)
commitbb5a7316b909612a382b30b568c6b0345b4b6768
treed69b26584747f9d01550e280050c10df52c2089b
parent763d8960a17126e73e7d9cd6b66e390196f48894
tools lib traceevent: Use USECS_PER_SEC instead of hardcoded number

Instead of using 1000000, use the define in time64.h instead.

Also remove the the duplicate defines for NSECS_PER_SEC.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/20161121114149.67111981@gandalf.local.home
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/traceevent/event-parse.c
tools/lib/traceevent/event-parse.h