[PATCH v8 02/16] cpu: Do not warn on arch_register_cpu() returning -EPROBE_DEFER

Jonathan Cameron Jonathan.Cameron at huawei.com
Fri Apr 26 06:51:12 PDT 2024


For arm64 the CPU registration cannot complete until the ACPI
interpreter us up and running so in those cases the arch specific
arch_register_cpu() will return -EPROBE_DEFER at this stage and the
registration will be attempted later.

Suggested-by: Rafael J. Wysocki <rafael at kernel.org>
Acked-by: Rafael J. Wysocki <rafael at kernel.org>
Reviewed-by: Hanjun Guo <guohanjun at huawei.com>
Reviewed-by: Gavin Shan <gshan at redhat.com>
Tested-by: Miguel Luis <miguel.luis at oracle.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron at huawei.com>

---
v8: No change
---
 drivers/base/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c
index 56fba44ba391..7b83e9c87d7c 100644
--- a/drivers/base/cpu.c
+++ b/drivers/base/cpu.c
@@ -558,7 +558,7 @@ static void __init cpu_dev_register_generic(void)
 
 	for_each_present_cpu(i) {
 		ret = arch_register_cpu(i);
-		if (ret)
+		if (ret && ret != -EPROBE_DEFER)
 			pr_warn("register_cpu %d failed (%d)\n", i, ret);
 	}
 }
-- 
2.39.2




More information about the linux-arm-kernel mailing list