Fix to behave correctly on latest real-time premptible kernels.
authorppisa <ppisa>
Wed, 9 Aug 2006 14:02:44 +0000 (14:02 +0000)
committerppisa <ppisa>
Wed, 9 Aug 2006 14:02:44 +0000 (14:02 +0000)
preempt_disable() cannot be used there to boost thread priority temporarily.

lincan/include/can_sysdep.h

index 5a3b86c..539a38e 100644 (file)
 #define CAN_DEFINE_SPINLOCK        DEFINE_SPINLOCK
 #endif /*DEFINE_SPINLOCK*/
 
-#if defined(CONFIG_PREEMPT) || (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0))
+#if !defined(CONFIG_PREEMPT_RT) && ( defined(CONFIG_PREEMPT) || (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) )
 #define can_preempt_disable        preempt_disable
 #define can_preempt_enable         preempt_enable
 #else /*CONFIG_PREEMPT*/