diff mbox series

tracing/osnoise: No need for schedule_hrtimeout range

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

Commit Message

Davidlohr Bueso Jan. 23, 2023, 11:46 p.m. UTC
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(-)

Comments

Daniel Bristot de Oliveira Jan. 27, 2023, 8:55 a.m. UTC | #1
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 mbox series

Patch

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;
 	}