diff --git a/src/main.c b/src/main.c index 31490b977941773ee8d1f511a170feaed9f4ded7..98e2bff5aaec0393184ba2a51a505e0a7c0558ee 100644 --- a/src/main.c +++ b/src/main.c @@ -415,6 +415,7 @@ static int unload_sched_routine(void) restore_sched_debugfs(); #endif + sched_mempools_destroy(); main_end = ktime_get(); report_detail_time("unload"); @@ -575,7 +576,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");