From: Davidlohr Bueso <dave@stgolabs.net>
To: rostedt@goodmis.org, bristot@kernel.org
Cc: dave@stgolabs.net, linux-trace-kernel@vger.kernel.org
Subject: [PATCH] tracing/osnoise: No need for schedule_hrtimeout range
Date: Mon, 23 Jan 2023 15:46:49 -0800 [thread overview]
Message-ID: <20230123234649.17968-1-dave@stgolabs.net> (raw)
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(-)
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;
}
--
2.39.0
next reply other threads:[~2023-01-24 0:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-23 23:46 Davidlohr Bueso [this message]
2023-01-27 8:55 ` [PATCH] tracing/osnoise: No need for schedule_hrtimeout range Daniel Bristot de Oliveira
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230123234649.17968-1-dave@stgolabs.net \
--to=dave@stgolabs.net \
--cc=bristot@kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).