mirror of
https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git
synced 2026-02-04 10:42:57 +01:00
Adapt to kernel 4.15 timers interface changes (#242)
Credits to https://github.com/mkubecek/vmware-host-modules/commit/562121d7bc06 for helping me understand the changes.
This commit is contained in:
committed by
Harshavardhana
parent
3059b62c98
commit
ee9ad6c348
@@ -271,8 +271,12 @@ __inline static void _init_timer(_timer *ptimer,_nic_hdl nic_hdl,void *pfunc,voi
|
|||||||
{
|
{
|
||||||
//setup_timer(ptimer, pfunc,(u32)cntx);
|
//setup_timer(ptimer, pfunc,(u32)cntx);
|
||||||
ptimer->function = pfunc;
|
ptimer->function = pfunc;
|
||||||
|
#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0))
|
||||||
ptimer->data = (unsigned long)cntx;
|
ptimer->data = (unsigned long)cntx;
|
||||||
init_timer(ptimer);
|
init_timer(ptimer);
|
||||||
|
#else
|
||||||
|
timer_setup(ptimer, pfunc, 0);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
__inline static void _set_timer(_timer *ptimer,u32 delay_time)
|
__inline static void _set_timer(_timer *ptimer,u32 delay_time)
|
||||||
|
|||||||
Reference in New Issue
Block a user