]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - drivers/base/cacheinfo.c
drivers: base: cacheinfo: fix x86 with CONFIG_OF enabled
[mirror_ubuntu-zesty-kernel.git] / drivers / base / cacheinfo.c
index e9fd32e91668992e478f31423c1e56be0724e1d2..ecde8957835ad1816223acb2f37479ca87469992 100644 (file)
@@ -106,6 +106,9 @@ static int cache_shared_cpu_map_setup(unsigned int cpu)
        unsigned int index;
        int ret;
 
+       if (this_cpu_ci->cpu_map_populated)
+               return 0;
+
        ret = cache_setup_of_node(cpu);
        if (ret)
                return ret;