Skip to content

Commit

Permalink
fix eventfd_signal for v6.8+
Browse files Browse the repository at this point in the history
  • Loading branch information
Trass3r committed Jul 2, 2024
1 parent 423a56d commit 6e3359d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/hv/dxgkrnl/dxgmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <linux/eventfd.h>
#include <linux/hyperv.h>
#include <linux/pci.h>
#include <linux/version.h>
#include "dxgkrnl.h"
#include "dxgsyncfile.h"

Expand Down Expand Up @@ -175,7 +176,11 @@ void signal_host_cpu_event(struct dxghostevent *eventhdr)
}
if (event->cpu_event) {
DXG_TRACE("signal cpu event");
eventfd_signal(event->cpu_event, 1);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,8,0)
eventfd_signal(event->cpu_event);
#else
eventfd_signal(event->cpu_event, 1);
#endif
if (event->destroy_after_signal)
eventfd_ctx_put(event->cpu_event);
} else {
Expand Down

0 comments on commit 6e3359d

Please sign in to comment.