[PATCH 5.18 158/339] tracing: Fix sleeping function called from invalid context on RT kernel