rpms/nvidia-kmod/devel kernel_v3.10.patch,1.1,1.2

Leigh Scott leigh123linux at rpmfusion.org
Tue Jul 16 18:36:52 CEST 2013


Author: leigh123linux

Update of /cvs/nonfree/rpms/nvidia-kmod/devel
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv29403

Modified Files:
	kernel_v3.10.patch 
Log Message:
* Tue Jul 16 2013 leigh scott <leigh123linux at googlemail.com> - 1:325.08-3
- add better patch for 3.10 kernel


kernel_v3.10.patch:
 nv-i2c.c    |    9 +++------
 nv-linux.h  |    4 ++++
 nv-procfs.c |    2 ++
 3 files changed, 9 insertions(+), 6 deletions(-)

Index: kernel_v3.10.patch
===================================================================
RCS file: /cvs/nonfree/rpms/nvidia-kmod/devel/kernel_v3.10.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- kernel_v3.10.patch	16 Jul 2013 16:22:46 -0000	1.1
+++ kernel_v3.10.patch	16 Jul 2013 16:36:51 -0000	1.2
@@ -28,3 +28,17 @@
  #if defined(CONFIG_PROC_FS)
  
  #include "nv_compiler.h"
+--- a/kernel/nv-linux.h
++++ b/kernel/nv-linux.h
+@@ -957,7 +957,11 @@ static inline int nv_execute_on_all_cpus
+ #endif
+ 
+ #if !defined(NV_VMWARE)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0)
++#define NV_NUM_PHYSPAGES                get_num_physpages()
++#else
+ #define NV_NUM_PHYSPAGES                num_physpages
++#endif
+ #define NV_GET_CURRENT_PROCESS()        current->tgid
+ #define NV_IN_ATOMIC()                  in_atomic()
+ #define NV_LOCAL_BH_DISABLE()           local_bh_disable()


More information about the rpmfusion-commits mailing list