提交 9b03e793 编写于 作者: F Florian Fainelli 提交者: Greg Kroah-Hartman

arch_topology: Silence early cacheinfo errors when non-existent

Architectures which do not have cacheinfo such as ARM 32-bit would spit
out the following during boot:

 Early cacheinfo failed, ret = -2

Treat -ENOENT specifically to silence this error since it means that the
platform does not support reporting its cache information.

Fixes: 3fcbf1c7 ("arch_topology: Fix cache attributes detection in the CPU hotplug path")
Tested-by: NGeert Uytterhoeven <geert+renesas@glider.be>
Tested-by: NMichael Walle <michael@walle.cc>
Reviewed-by: NSudeep Holla <sudeep.holla@arm.com>
Reviewed-by: NConor Dooley <conor.dooley@microchip.com>
Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20220805230736.1562801-1-f.fainelli@gmail.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 25e9fbf0
......@@ -735,7 +735,7 @@ void update_siblings_masks(unsigned int cpuid)
int cpu, ret;
ret = detect_cache_attributes(cpuid);
if (ret)
if (ret && ret != -ENOENT)
pr_info("Early cacheinfo failed, ret = %d\n", ret);
/* update core and thread sibling masks */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册