]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdfa127f43c4a884baaa4f97d68d002019226d135
treed69b26584747f9d01550e280050c10df52c2089b
parent64764d49e1c05fcdf564d4aada15298e669ad881
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