]> rtime.felk.cvut.cz Git - lincan.git/commitdiff
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 5a3b86cdd922a53a4d52f274416c9eb4800ef3fd..539a38e78b563b7e8b761b858124cd98c2b04a4f 100644 (file)
 #define CAN_DEFINE_SPINLOCK        DEFINE_SPINLOCK
 #endif /*DEFINE_SPINLOCK*/
 
 #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*/
 #define can_preempt_disable        preempt_disable
 #define can_preempt_enable         preempt_enable
 #else /*CONFIG_PREEMPT*/