]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
cpu: Do not warn on arch_register_cpu() returning -EPROBE_DEFER
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 29 May 2024 13:34:29 +0000 (14:34 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 28 Jun 2024 17:38:27 +0000 (18:38 +0100)
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@kernel.org>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
Reviewed-by: Hanjun Guo <guohanjun@huawei.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Tested-by: Miguel Luis <miguel.luis@oracle.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20240529133446.28446-3-Jonathan.Cameron@huawei.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
drivers/base/cpu.c

index c61ecb0c2ae2900a641c74b358d076357b36131d..1487cd9761a441bc67a12296f330081a96a9245f 100644 (file)
@@ -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);
        }
 }