580.65.06

This commit is contained in:
Maneet Singh
2025-08-04 11:15:02 -07:00
parent d890313300
commit 307159f262
1315 changed files with 477791 additions and 279973 deletions

View File

@@ -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)