]> git.baikalelectronics.ru Git - kernel.git/commit
arch_topology: Silence early cacheinfo errors when non-existent
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 5 Aug 2022 23:07:36 +0000 (16:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Sep 2022 14:31:09 +0000 (16:31 +0200)
commitd42324b9bf894a5a9ec6fda6e68dc987df40d266
tree67944707ddb2a20a0b7e5cdf0a6f7eca87a1c1c5
parent814a2d4876d061571029eda5890797fb12787232
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: bc61502d98e0 ("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>
drivers/base/arch_topology.c