Advertisement
Guest User

Untitled

a guest
Aug 5th, 2013
6,033
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None
  1. --- a/kernel/nv-linux.h
  2. +++ b/kernel/nv-linux.h
  3. @@ -957,7 +957,11 @@ static inline int nv_execute_on_all_cpus
  4. #endif
  5.  
  6. #if !defined(NV_VMWARE)
  7. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)
  8. +#define NV_NUM_PHYSPAGES get_num_physpages()
  9. +#else
  10. #define NV_NUM_PHYSPAGES num_physpages
  11. +#endif
  12. #define NV_GET_CURRENT_PROCESS() current->tgid
  13. #define NV_IN_ATOMIC() in_atomic()
  14. #define NV_LOCAL_BH_DISABLE() local_bh_disable()
Advertisement
RAW Paste Data Copied
Advertisement