Added Kernel 5.17 support
This commit is contained in:
parent
c65e25b2fc
commit
720cb330b3
|
@ -1309,7 +1309,11 @@ u32 _rtw_down_sema(_sema *sema)
|
||||||
inline void thread_exit(_completion *comp)
|
inline void thread_exit(_completion *comp)
|
||||||
{
|
{
|
||||||
#ifdef PLATFORM_LINUX
|
#ifdef PLATFORM_LINUX
|
||||||
|
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0))
|
||||||
complete_and_exit(comp, 0);
|
complete_and_exit(comp, 0);
|
||||||
|
#else
|
||||||
|
kthread_complete_and_exit(comp, 0);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PLATFORM_FREEBSD
|
#ifdef PLATFORM_FREEBSD
|
||||||
|
|
Loading…
Reference in New Issue