git: 8f9567628cb2 - main - LinuxKPI: add time_is_before_jiffies()

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Fri, 11 Oct 2024 20:50:09 UTC
The branch main has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=8f9567628cb2ccb335640c4bb044df2ebf45d83a

commit 8f9567628cb2ccb335640c4bb044df2ebf45d83a
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2024-09-28 22:32:03 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2024-10-11 20:48:58 +0000

    LinuxKPI: add time_is_before_jiffies()
    
    Add time_is_before_jiffies() as needed by iwlwifi from v6.11.
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      3 days
    Reviewed by:    emaste
    Differential Revision: https://reviews.freebsd.org/D46841
---
 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 d5cb6e14860e..bd05a0db0767 100644
--- a/sys/compat/linuxkpi/common/include/linux/jiffies.h
+++ b/sys/compat/linuxkpi/common/include/linux/jiffies.h
@@ -52,6 +52,7 @@
 	(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	time_is_before_jiffies(a)	time_before(a, jiffies)
 
 #define	HZ	hz