Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 10-31-09, 08:11 AM   #1
joseangel
Registered User
 
Join Date: Feb 2005
Posts: 2
Default 190.42 doesn't build on 2.6.29-rt

Thanks in advance.
Attached Files
File Type: log nvidia-installer.log (50.3 KB, 84 views)
File Type: gz nvidia-bug-report.log.gz (40.4 KB, 77 views)
joseangel is offline   Reply With Quote
Old 10-31-09, 09:53 AM   #2
joseangel
Registered User
 
Join Date: Feb 2005
Posts: 2
Default Re: 190.42 doesn't build on 2.6.29-rt

--- nv-linux.h.original 2009-10-31 14:36:29.000000000 +0100
+++ nv-linux.h 2009-10-31 14:50:12.000000000 +0100
@@ -198,7 +198,7 @@
#endif
#endif

-#if defined(CONFIG_PREEMPT_RT)
+#if defined(CONFIG_PREEMPT_RT) && (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 29))
typedef atomic_spinlock_t nv_spinlock_t;
#define NV_SPIN_LOCK_INIT(lock) atomic_spin_lock_init(lock)
#define NV_SPIN_LOCK_IRQ(lock) atomic_spin_lock_irq(lock)
@@ -758,7 +758,11 @@
}

#if defined(CONFIG_PREEMPT_RT)
-#define NV_INIT_MUTEX(mutex) semaphore_init(mutex)
+ #if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31))
+ #define NV_INIT_MUTEX(mutex) init_MUTEX(mutex)
+ #else
+ #define NV_INIT_MUTEX(mutex) semaphore_init(mutex)
+ #endif
#else
#if !defined(__SEMAPHORE_INITIALIZER) && defined(__COMPAT_SEMAPHORE_INITIALIZER)
#define __SEMAPHORE_INITIALIZER __COMPAT_SEMAPHORE_INITIALIZER
joseangel is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:46 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.