Added Kernel 5.17 support

This commit is contained in:
ivanovborislav 2022-03-29 18:55:48 +03:00 committed by GitHub
parent c65e25b2fc
commit 720cb330b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -1309,7 +1309,11 @@ u32 _rtw_down_sema(_sema *sema)
inline void thread_exit(_completion *comp)
{
#ifdef PLATFORM_LINUX
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0))
complete_and_exit(comp, 0);
#else
kthread_complete_and_exit(comp, 0);
#endif
#endif
#ifdef PLATFORM_FREEBSD