mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-02-05 19:39:50 +08:00
Fix rt_mutex_lock_interruptible() again for RT >= 3.2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user