git: f835be58226a - main - sleepq_set_timeout_sbt(): correct comment to not talk about ticks
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 20 Aug 2022 17:34:53 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=f835be58226a058c56d305455ec78c4d6f11b9fc commit f835be58226a058c56d305455ec78c4d6f11b9fc Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2022-08-12 00:35:45 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2022-08-20 17:33:17 +0000 sleepq_set_timeout_sbt(): correct comment to not talk about ticks It is sbt now. Also, explain what flags are. Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential revision: https://reviews.freebsd.org/D36207 --- sys/kern/subr_sleepqueue.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/kern/subr_sleepqueue.c b/sys/kern/subr_sleepqueue.c index 112dbbf93960..164e58b2a571 100644 --- a/sys/kern/subr_sleepqueue.c +++ b/sys/kern/subr_sleepqueue.c @@ -388,8 +388,9 @@ sleepq_add(const void *wchan, struct lock_object *lock, const char *wmesg, } /* - * Sets a timeout that will remove the current thread from the specified - * sleep queue after timo ticks if the thread has not already been awakened. + * Sets a timeout that will remove the current thread from the + * specified sleep queue at the specified time if the thread has not + * already been awakened. Flags are from C_* (callout) namespace. */ void sleepq_set_timeout_sbt(const void *wchan, sbintime_t sbt, sbintime_t pr,