mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-02-09 01:29:57 +00:00
580.65.06
This commit is contained in:
@@ -30,11 +30,7 @@
|
||||
#include "uvm_test_ioctl.h"
|
||||
#include "nv-kref.h"
|
||||
|
||||
#if defined(NV_LINUX_SCHED_MM_H_PRESENT)
|
||||
#include <linux/sched/mm.h>
|
||||
#elif defined(NV_LINUX_SCHED_H_PRESENT)
|
||||
#include <linux/sched.h>
|
||||
#endif
|
||||
|
||||
typedef enum
|
||||
{
|
||||
@@ -201,13 +197,6 @@ static void uvm_va_space_mm_or_current_release_unlock(uvm_va_space_t *va_space,
|
||||
}
|
||||
}
|
||||
|
||||
#if !defined(NV_MMGET_NOT_ZERO_PRESENT)
|
||||
static bool mmget_not_zero(struct mm_struct *mm)
|
||||
{
|
||||
return atomic_inc_not_zero(&mm->mm_users);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if UVM_CAN_USE_MMU_NOTIFIERS()
|
||||
static void uvm_mmput(struct mm_struct *mm)
|
||||
{
|
||||
@@ -216,11 +205,7 @@ static void uvm_mmput(struct mm_struct *mm)
|
||||
|
||||
static void uvm_mmgrab(struct mm_struct *mm)
|
||||
{
|
||||
#if defined(NV_MMGRAB_PRESENT)
|
||||
mmgrab(mm);
|
||||
#else
|
||||
atomic_inc(&mm->mm_count);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void uvm_mmdrop(struct mm_struct *mm)
|
||||
|
||||
Reference in New Issue
Block a user