git: b8b2be57af15 - main - LinuxKPI: Added jiffies64_to_msecs for amdkfd compatibility

From: Jean-Sébastien Pédron <dumbbell_at_FreeBSD.org>
Date: Wed, 09 Sep 2026 20:01:18 UTC
The branch main has been updated by dumbbell:

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

commit b8b2be57af15c96865004252b2188bcbc9bc3c67
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2026-09-09 19:45:06 +0000
Commit:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2026-09-09 19:46:02 +0000

    LinuxKPI: Added jiffies64_to_msecs for amdkfd compatibility
    
    jiffies64_to_msecs is used by kfd_process.c in the amd/amdkfd driver
    from Linux kernel 6.12.
    
    Submitted by:   Sourojeet Adhikari
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D58075
---
 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 c2409726e874..1a2e207f0684 100644
--- a/sys/compat/linuxkpi/common/include/linux/jiffies.h
+++ b/sys/compat/linuxkpi/common/include/linux/jiffies.h
@@ -39,6 +39,7 @@
 extern unsigned long jiffies;	/* defined in sys/kern/subr_ticks.S */
 #define	jiffies_64		jiffies	/* XXX-MJ wrong on 32-bit platforms */
 #define	jiffies_to_msecs(x)     ((unsigned int)(((int64_t)(int)(x)) * 1000 / hz))
+#define	jiffies64_to_msecs(x)	(((uint64_t)(x)) * 1000 / hz)
 
 #define	MAX_JIFFY_OFFSET	((LONG_MAX >> 1) - 1)