Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 11th, 2014  |  syntax: C++  |  size: 0.62 KB  |  views: 48  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Index: NVIDIA-Linux-x86_64-304.88/kernel/nv-acpi.c
  2. ===================================================================
  3. --- NVIDIA-Linux-x86_64-304.88.orig/kernel/nv-acpi.c
  4. +++ NVIDIA-Linux-x86_64-304.88/kernel/nv-acpi.c
  5. @@ -299,7 +299,10 @@ static int nv_acpi_remove(struct acpi_de
  6.  
  7. if (pNvAcpiObject->notify_handler_installed)
  8. {
  9. +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
  10. + /* beginning with 3.13, acpi_remove_notify_handler() waits for events to finish */
  11. NV_ACPI_OS_WAIT_EVENTS_COMPLETE();
  12. +#endif
  13.  
  14. // remove event notifier
  15. status = acpi_remove_notify_handler(device->handle, ACPI_DEVICE_NOTIFY, nv_acpi_event);