Fix rt_mutex_lock_interruptible() again for RT >= 3.2
This commit is contained in:
parent
d71e362a5e
commit
93b60bb812
|
|
@ -62,7 +62,8 @@
|
|||
#else
|
||||
# define ec_ioctl_lock(lock) rt_mutex_lock(lock)
|
||||
# define ec_ioctl_unlock(lock) rt_mutex_unlock(lock)
|
||||
# if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0)
|
||||
# if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0) || \
|
||||
(defined(CONFIG_PREEMPT_RT_FULL) && LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0))
|
||||
# define ec_ioctl_lock_interruptible(lock) \
|
||||
rt_mutex_lock_interruptible(lock)
|
||||
# else
|
||||
|
|
|
|||
|
|
@ -52,7 +52,8 @@
|
|||
#include "ethernet.h"
|
||||
#endif
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0)
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0) || \
|
||||
(defined(CONFIG_PREEMPT_RT_FULL) && LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0))
|
||||
# define ec_rt_lock_interruptible(lock) \
|
||||
rt_mutex_lock_interruptible(lock)
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in New Issue