View Single Post
Old 09-23-09, 02:47 PM   #1
pavlinux
Registered User
 
pavlinux's Avatar
 
Join Date: Feb 2006
Location: Moscow, Russia
Posts: 57
Default Patch for 190.32 and latest Realtime rt11 kernel

http://pavlinux.ru/nv/nvidia-190.32-for-2.6.31.patch

Code:
diff -ur 190.32/usr/src/nv/nv-linux.h 190.32-rt/usr/src/nv/nv-linux.h
--- nv-linux.h	2009-09-08 23:57:13.000000000 +0400
+++ nv-linux.h	2009-09-23 22:15:05.889398178 +0400
@@ -743,7 +743,7 @@
 #define nv_up(lock)                     up(&lock)
 
 #if defined(CONFIG_PREEMPT_RT)
-#define NV_INIT_MUTEX(mutex) init_MUTEX(mutex)
+#define NV_INIT_MUTEX(mutex) semaphore_init(mutex)
 #else
 #if !defined(__SEMAPHORE_INITIALIZER) && defined(__COMPAT_SEMAPHORE_INITIALIZER)
 #define __SEMAPHORE_INITIALIZER __COMPAT_SEMAPHORE_INITIALIZER
diff -ur 190.32/usr/src/nv/os-interface.c 190.32-rt/usr/src/nv/os-interface.c
--- os-interface.c	2009-09-08 23:57:13.000000000 +0400
+++ os-interface.c	2009-09-23 22:21:27.826648129 +0400
@@ -108,11 +108,7 @@
 {
     nv_stack_t        *sp;
     struct completion  completion;
-#if defined(CONFIG_PREEMPT_RT)
-    raw_spinlock_t     lock;
-#else
     spinlock_t         lock;
-#endif
     S032               count;
 } os_sema_t;



Unigine Tropic Demo Benchmark

linux-2.6.31-rt11 + 190.32
linux-2.6.30.2 + 190.16
linux-2.6.29 + 180.44
pavlinux is offline   Reply With Quote