nvidia-331.13-linux-3.11.patch


SUBMITTED BY: Guest

DATE: Nov. 13, 2013, 9:19 p.m.

FORMAT: Text only

SIZE: 682 Bytes

HITS: 1086

  1. diff -urN nvidia-331.13/nv-linux.h nvidia-331.13-new/nv-linux.h
  2. --- nvidia-331.13/nv-linux.h 2013-09-30 03:47:18.000000000 +0000
  3. +++ nvidia-331.13-new/nv-linux.h 2013-10-04 20:10:26.000000000 +0000
  4. @@ -956,7 +956,13 @@
  5. #endif
  6. #if !defined(NV_VMWARE)
  7. -#define NV_NUM_PHYSPAGES num_physpages
  8. +
  9. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)
  10. +#define NV_NUM_PHYSPAGES get_num_physpages
  11. +#else
  12. +#define NV_NUM_PHYSPAGES num_physpages
  13. +#endif
  14. +
  15. #define NV_GET_CURRENT_PROCESS() current->tgid
  16. #define NV_IN_ATOMIC() in_atomic()
  17. #define NV_LOCAL_BH_DISABLE() local_bh_disable()

comments powered by Disqus