diff options
| author | zy <[email protected]> | 2023-10-23 22:31:40 -0400 |
|---|---|---|
| committer | zy <[email protected]> | 2023-10-23 22:31:40 -0400 |
| commit | 3f687c58ae28225ea33d8a72d8b73751fe25ec9b (patch) | |
| tree | 20a9260ef9f5b8510490dd2976ab5f96538d95bb | |
| parent | d98301141d5df2bf74b0319afb889664dccfea36 (diff) | |
_cond_resched, maybe work.
| -rwxr-xr-x | SOURCE/module/kernel/sys_delay.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/SOURCE/module/kernel/sys_delay.c b/SOURCE/module/kernel/sys_delay.c index 8ea674c..7c18ba8 100755 --- a/SOURCE/module/kernel/sys_delay.c +++ b/SOURCE/module/kernel/sys_delay.c @@ -525,9 +525,18 @@ long diag_ioctl_sys_delay(unsigned int cmd, unsigned long arg) return ret; } +#if KERNEL_VERSION(5, 17, 15) == LINUX_VERSION_CODE +static inline int _cond_resched2(void) +{ + return __cond_resched(); +} +#endif + static int lookup_syms(void) { - // LOOKUP_SYMS(_cond_resched); +#if KERNEL_VERSION(5, 17, 15) != LINUX_VERSION_CODE + LOOKUP_SYMS(_cond_resched); +#endif #if KERNEL_VERSION(4, 4, 0) <= LINUX_VERSION_CODE LOOKUP_SYMS(__schedule); #else |
