Implemented new timer interface for mini example since kernel 6.15.
This commit is contained in:
parent
013c44ad0d
commit
240080f110
|
|
@ -525,7 +525,11 @@ void __exit cleanup_mini_module(void)
|
||||||
{
|
{
|
||||||
printk(KERN_INFO PFX "Stopping...\n");
|
printk(KERN_INFO PFX "Stopping...\n");
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 15, 0)
|
||||||
|
timer_delete_sync(&timer);
|
||||||
|
#else
|
||||||
del_timer_sync(&timer);
|
del_timer_sync(&timer);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if EXTERNAL_MEMORY
|
#if EXTERNAL_MEMORY
|
||||||
kfree(domain1_pd);
|
kfree(domain1_pd);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue