1 --- a/src/drv_tapi_linux.c
2 +++ b/src/drv_tapi_linux.c
3 @@ -3287,10 +3287,13 @@ static IFX_void_t proc_EntriesRemove(IFX
5 static IFX_void_t tapi_wq_setscheduler (IFX_int32_t foo)
7 +#if LINUX_VERSION_CODE < KERNEL_VERSION(5,9,0)
8 struct sched_param sched_params;
10 sched_params.sched_priority = TAPI_OS_THREAD_PRIO_HIGH;
11 sched_setscheduler(current, SCHED_FIFO, &sched_params);
13 + sched_set_fifo_low(current);
16 #endif /* LINUX_2_6 */
18 @@ -3727,6 +3730,7 @@ static IFX_int32_t TAPI_SelectCh (TAPI_F
20 IFX_int32_t TAPI_OS_ThreadPriorityModify(IFX_uint32_t newPriority)
22 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5,9,0))
23 struct sched_param sched_params;
26 @@ -3744,6 +3748,10 @@ IFX_int32_t TAPI_OS_ThreadPriorityModify
29 return (ret < 0) ? IFX_ERROR : IFX_SUCCESS;
31 + sched_set_fifo_low(current);
37 --- a/src/drv_tapi_kpi.c
38 +++ b/src/drv_tapi_kpi.c
39 @@ -134,7 +134,12 @@ extern IFX_int32_t block_ingre
40 /* ========================================================================== */
41 static IFX_void_t ifx_tapi_KPI_IngressHandler (IFX_ulong_t foo);
43 +#if LINUX_VERSION_CODE < KERNEL_VERSION(5,9,0) && \
44 + !(LINUX_VERSION_CODE < KERNEL_VERSION(5,5,0) && LINUX_VERSION_CODE > KERNEL_VERSION(5,4,235))
45 DECLARE_TASKLET(tl_kpi_ingress, ifx_tapi_KPI_IngressHandler, 0L);
47 +DECLARE_TASKLET_OLD(tl_kpi_ingress, ifx_tapi_KPI_IngressHandler);
49 #endif /* KPI_TASKLET */
50 static IFX_int32_t ifx_tapi_KPI_IngressThread (IFXOS_ThreadParams_t *pThread);
51 static IFX_return_t ifx_tapi_KPI_GroupInit(IFX_uint32_t nKpiGroup);