Skip to content

Commit d830ef3

Browse files
jic23ctmarinas
authored andcommitted
cpu: Do not warn on arch_register_cpu() returning -EPROBE_DEFER
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>
1 parent c1385c1 commit d830ef3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/base/cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ static void __init cpu_dev_register_generic(void)
558558

559559
for_each_present_cpu(i) {
560560
ret = arch_register_cpu(i);
561-
if (ret)
561+
if (ret && ret != -EPROBE_DEFER)
562562
pr_warn("register_cpu %d failed (%d)\n", i, ret);
563563
}
564564
}

0 commit comments

Comments
 (0)