Message ID | 20230123234649.17968-1-dave@stgolabs.net (mailing list archive) |
---|---|
State | Accepted |
Commit | b18c58af29e465d21d4cd9e8c5008ae0e0147384 |
Headers | show |
Series | tracing/osnoise: No need for schedule_hrtimeout range | expand |
On 1/24/23 00:46, Davidlohr Bueso wrote: > No slack time is being passed, just use schedule_hrtimeout(). > > Signed-off-by: Davidlohr Bueso <dave@stgolabs.net> Acked-by: Daniel Bristot de Oliveira <bristot@kernel.org> Thanks! -- Daniel
diff --git a/kernel/trace/trace_osnoise.c b/kernel/trace/trace_osnoise.c index 94c1b5eb1dc0..2c1175b7d64f 100644 --- a/kernel/trace/trace_osnoise.c +++ b/kernel/trace/trace_osnoise.c @@ -1540,7 +1540,7 @@ static void osnoise_sleep(void) wake_time = ktime_add_us(ktime_get(), interval); __set_current_state(TASK_INTERRUPTIBLE); - while (schedule_hrtimeout_range(&wake_time, 0, HRTIMER_MODE_ABS)) { + while (schedule_hrtimeout(&wake_time, HRTIMER_MODE_ABS)) { if (kthread_should_stop()) break; }
No slack time is being passed, just use schedule_hrtimeout(). Signed-off-by: Davidlohr Bueso <dave@stgolabs.net> --- Found while looking at schedule_hrtimeout users. kernel/trace/trace_osnoise.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)