tracing/osnoise: Make osnoise_main to sleep for microseconds
authorDaniel Bristot de Oliveira <bristot@kernel.org>
Fri, 18 Feb 2022 15:17:38 +0000 (16:17 +0100)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 25 Feb 2022 17:07:01 +0000 (12:07 -0500)
commitdd990352f01ee9a6c6eee152e5d11c021caccfe4
tree84fff9fc4945fc10a63db9d7d1f56bd6b00dd7ac
parentab2f993c01f261aa3eeb8842842ff38bff7806b6
tracing/osnoise: Make osnoise_main to sleep for microseconds

osnoise's runtime and period are in the microseconds scale, but it is
currently sleeping in the millisecond's scale. This behavior roots in the
usage of hwlat as the skeleton for osnoise.

Make osnoise to sleep in the microseconds scale. Also, move the sleep to
a specialized function.

Link: https://lkml.kernel.org/r/302aa6c7bdf2d131719b22901905e9da122a11b2.1645197336.git.bristot@kernel.org
Cc: Ingo Molnar <mingo@redhat.com>
Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_osnoise.c