Implemented new timer interface for mini example since kernel 6.15.

This commit is contained in:
Florian Pose
2025-06-10 11:53:59 +02:00
parent 013c44ad0d
commit 240080f110

View File

@@ -525,7 +525,11 @@ void __exit cleanup_mini_module(void)
{
printk(KERN_INFO PFX "Stopping...\n");
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 15, 0)
timer_delete_sync(&timer);
#else
del_timer_sync(&timer);
#endif
#if EXTERNAL_MEMORY
kfree(domain1_pd);