git: 8620fe4c1092 - main - LinuxKPI: add time_is_after_jiffies() definition
Bjoern A. Zeeb
bz at FreeBSD.org
Tue May 25 18:15:05 UTC 2021
The branch main has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=8620fe4c10922b12492155d97b913deb6c5d82c6
commit 8620fe4c10922b12492155d97b913deb6c5d82c6
Author: Bjoern A. Zeeb <bz at FreeBSD.org>
AuthorDate: 2021-05-24 18:24:13 +0000
Commit: Bjoern A. Zeeb <bz at FreeBSD.org>
CommitDate: 2021-05-25 18:01:47 +0000
LinuxKPI: add time_is_after_jiffies() definition
This is used by wireless drivers. Use the time_after() macro as
done for the "after_eq" version.
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D30430
---
sys/compat/linuxkpi/common/include/linux/jiffies.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/compat/linuxkpi/common/include/linux/jiffies.h b/sys/compat/linuxkpi/common/include/linux/jiffies.h
index ed2c5f774d23..7d547e6d66cd 100644
--- a/sys/compat/linuxkpi/common/include/linux/jiffies.h
+++ b/sys/compat/linuxkpi/common/include/linux/jiffies.h
@@ -53,6 +53,7 @@
#define time_in_range(a,b,c) \
(time_after_eq(a,b) && time_before_eq(a,c))
#define time_is_after_eq_jiffies(a) time_after_eq(a, jiffies)
+#define time_is_after_jiffies(a) time_after(a, jiffies)
#define HZ hz
More information about the dev-commits-src-main
mailing list