]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Wed, 23 Mar 2022 10:49:03 +0000 (11:49 +0100)
commita9ab0ddbcd143e61de4a150c0f08ea06a174ae63
tree66e2f1df2970eb38f415c52ee0ad61b857be49a1
parent067b95eecf39c6a07d1c51fe55b66562c9e0c937
tracing/osnoise: Make osnoise_main to sleep for microseconds

BugLink: https://bugs.launchpad.net/bugs/1966056
[ Upstream commit dd990352f01ee9a6c6eee152e5d11c021caccfe4 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
kernel/trace/trace_osnoise.c