jiffies64_to_msecs is used by kfd_process.c in the amd/amdkfd driver from
Linux kernel 6.12.
Sponsored By: FreeBSD Foundation
Differential D58075
LinuxKPI: Added jiffies64_to_msecs for amdkfd compatibility. Authored by siri_racha.ca on Jul 7 2026, 7:19 AM. Tags Referenced Files
Details
jiffies64_to_msecs is used by kfd_process.c in the amd/amdkfd driver from Sponsored By: FreeBSD Foundation Built kernel, and booted with no issues.
Diff Detail
Event TimelineComment Actions Patch does not apply: $ git arc patch -c D58075 Applying D58075... INFO Base commit is not in local repository; trying to fetch. Checking patch sys/compat/linuxkpi/common/include/linux/jiffies.h... error: while searching for: 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 MAX_JIFFY_OFFSET ((LONG_MAX >> 1) - 1) error: patch failed: sys/compat/linuxkpi/common/include/linux/jiffies.h:39 Applying patch sys/compat/linuxkpi/common/include/linux/jiffies.h with 1 reject... Rejected hunk #1. Patch Failed! Usage Exception: Unable to apply patch! It looks like the patch is on top of a version of this file where tabs have been converted to spaces. Can you please re-generate with whitespace unchanged? Comment Actions This change builds fine too when applied on top of 74c539fd1cefdbc993411274c613434c3f23b4b1 |