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 <[email protected]> Tested-by: Michael Walle <[email protected]> Reviewed-by: Sudeep Holla <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Signed-off-by: Florian Fainelli <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 25e9fbf commit 9b03e79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)