|
@@ -934,10 +934,9 @@ void ehca_destroy_comp_pool(void)
|
|
|
|
|
|
|
|
unregister_hotcpu_notifier(&comp_pool_callback_nb);
|
|
unregister_hotcpu_notifier(&comp_pool_callback_nb);
|
|
|
|
|
|
|
|
- for (i = 0; i < NR_CPUS; i++) {
|
|
|
|
|
- if (cpu_online(i))
|
|
|
|
|
- destroy_comp_task(pool, i);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ for_each_online_cpu(i)
|
|
|
|
|
+ destroy_comp_task(pool, i);
|
|
|
|
|
+
|
|
|
free_percpu(pool->cpu_comp_tasks);
|
|
free_percpu(pool->cpu_comp_tasks);
|
|
|
kfree(pool);
|
|
kfree(pool);
|
|
|
}
|
|
}
|