diff options
author | Lenard Spencer <lenardrspencer@gmail.com> | 2021-08-14 19:33:38 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-08-19 18:33:45 +0700 |
commit | 3bdbf701ff7b7b2d462bd1c500f9e0541c300a07 (patch) | |
tree | f835ca3b721804e25ea006fbbc2101d88e6c4b21 /system/nvidia-legacy390-kernel/kernel-5.14-uvm.patch | |
parent | 4b5fee8ec1c08e24082939f499a6a216ef365afe (diff) |
system/nvidia-legacy390-kernel: Updated for version 390.144.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/nvidia-legacy390-kernel/kernel-5.14-uvm.patch')
-rw-r--r-- | system/nvidia-legacy390-kernel/kernel-5.14-uvm.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/system/nvidia-legacy390-kernel/kernel-5.14-uvm.patch b/system/nvidia-legacy390-kernel/kernel-5.14-uvm.patch new file mode 100644 index 0000000000000..0e8570f53692e --- /dev/null +++ b/system/nvidia-legacy390-kernel/kernel-5.14-uvm.patch @@ -0,0 +1,30 @@ +diff -Nur kernel.orig/nvidia-uvm/uvm_linux.h kernel/nvidia-uvm/uvm_linux.h +--- kernel.orig/nvidia-uvm/uvm_linux.h 2021-06-02 19:09:58.000000000 -0400 ++++ kernel/nvidia-uvm/uvm_linux.h 2021-07-21 00:58:00.406951472 -0400 +@@ -29,6 +29,8 @@ + // + // + ++#include <linux/version.h> ++ + #ifndef _UVM_LINUX_H + #define _UVM_LINUX_H + +@@ -475,10 +477,17 @@ + #elif (NV_WAIT_ON_BIT_LOCK_ARGUMENT_COUNT == 4) + static __sched int uvm_bit_wait(void *word) + { ++#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 14, 0)) + if (signal_pending_state(current->state, current)) + return 1; + schedule(); + return 0; ++#else ++ if (signal_pending_state(current->__state, current)) ++ return 1; ++ schedule(); ++ return 0; ++#endif + } + #define UVM_WAIT_ON_BIT_LOCK(word, bit, mode) \ + wait_on_bit_lock(word, bit, uvm_bit_wait, mode) |