nvidia-merged/nvidia-eventfd-fix.patch

23 lines
736 B
Diff
Raw Normal View History

diff --git a/usr/src/nvidia-535.129.03-orig/nvidia-vgpu-vfio/nvidia-vgpu-vfio.c b/kernel/nvidia-vgpu-vfio/nvidia-vgpu-vfio.c
index a2620f6..b1f434f 100644
--- a/usr/src/nvidia-535.129.03-orig/nvidia-vgpu-vfio/nvidia-vgpu-vfio.c
+++ b/kernel/nvidia-vgpu-vfio/nvidia-vgpu-vfio.c
@@ -2872,7 +2872,7 @@ static irqreturn_t vgpu_msix_handler(int irq, void *arg)
}
if (trigger != NULL)
- eventfd_signal(trigger, 1);
+ eventfd_signal(trigger);
else
return IRQ_NONE;
@@ -3185,7 +3185,7 @@ NV_STATUS nv_vgpu_inject_interrupt(void *vgpuRef)
}
NV_SPIN_UNLOCK_IRQRESTORE(&vgpu_dev->intr_info_lock, eflags);
- eventfd_signal(trigger, 1);
+ eventfd_signal(trigger);
return status;
}