diff --git a/src/main.c b/src/main.c index 31490b977941773ee8d1f511a170feaed9f4ded7..928b176529d3de4682e999ad9159600f9bcf89db 100644 --- a/src/main.c +++ b/src/main.c @@ -413,6 +413,8 @@ static int unload_sched_routine(void) restore_sched_domain_sysctl(); restore_sched_debug_procfs(); restore_sched_debugfs(); + sched_mempools_destroy(); + #endif main_end = ktime_get(); @@ -575,7 +577,6 @@ static int __init sched_mod_init(void) static void __exit sched_mod_exit(void) { - sched_mempools_destroy(); unregister_plugsched_sysfs(); printk("Bye, scheduler mod has be removed!\n");