powerpc: Make sure "cache" directory is removed when offlining cpu
[deliverable/linux.git] / arch / powerpc / kernel / cacheinfo.c
index 654932727873da2ed0073d70d77efb271713a28a..2912b8787aa46b4b28b0e84a2e5c068afc2f5ea2 100644 (file)
@@ -12,7 +12,6 @@
 
 #include <linux/cpu.h>
 #include <linux/cpumask.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/kobject.h>
 #include <linux/list.h>
@@ -794,6 +793,9 @@ static void remove_cache_dir(struct cache_dir *cache_dir)
 {
        remove_index_dirs(cache_dir);
 
+       /* Remove cache dir from sysfs */
+       kobject_del(cache_dir->kobj);
+
        kobject_put(cache_dir->kobj);
 
        kfree(cache_dir);
This page took 0.030239 seconds and 5 git commands to generate.