Skip to content

Commit 9b03e79

Browse files
ffainelligregkh
authored andcommitted
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: 3fcbf1c ("arch_topology: Fix cache attributes detection in the CPU hotplug path") Tested-by: Geert Uytterhoeven <geert+renesas@glider.be> Tested-by: Michael Walle <michael@walle.cc> Reviewed-by: Sudeep Holla <sudeep.holla@arm.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Link: https://lore.kernel.org/r/20220805230736.1562801-1-f.fainelli@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 25e9fbf commit 9b03e79

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/base/arch_topology.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ void update_siblings_masks(unsigned int cpuid)
735735
int cpu, ret;
736736

737737
ret = detect_cache_attributes(cpuid);
738-
if (ret)
738+
if (ret && ret != -ENOENT)
739739
pr_info("Early cacheinfo failed, ret = %d\n", ret);
740740

741741
/* update core and thread sibling masks */

0 commit comments

Comments
 (0)