From 2b5a15113faac609fdfe7a1303bff12a4ea96970 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Thu, 2 Jan 2014 01:05:48 +0200 Subject: [PATCH] xf86-video-nvidia-legacy: make nvidia-legacy happy with kernel 3.13 --- .../patches.upstream/01-kernel-3.13.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 packages/x11/driver/xf86-video-nvidia-legacy/patches.upstream/01-kernel-3.13.patch diff --git a/packages/x11/driver/xf86-video-nvidia-legacy/patches.upstream/01-kernel-3.13.patch b/packages/x11/driver/xf86-video-nvidia-legacy/patches.upstream/01-kernel-3.13.patch new file mode 100644 index 0000000000..ce33d7d4b4 --- /dev/null +++ b/packages/x11/driver/xf86-video-nvidia-legacy/patches.upstream/01-kernel-3.13.patch @@ -0,0 +1,16 @@ +diff --git a/kernel/nv-acpi.c b/kernel/nv-acpi.c +index b0138cd..756f330 100644 +--- a/kernel/nv-acpi.c ++++ b/kernel/nv-acpi.c +@@ -303,8 +303,11 @@ static int nv_acpi_remove(struct acpi_device *device, int type) + + if (pNvAcpiObject->notify_handler_installed) + { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0) ++/* beginning with 3.13, acpi_remove_notify_handler() waits for events to finish */ + NV_ACPI_OS_WAIT_EVENTS_COMPLETE(); + ++#endif + // remove event notifier + status = acpi_remove_notify_handler(device->handle, ACPI_DEVICE_NOTIFY, nv_acpi_event); + }