Skip to content

Commit d2721bb

Browse files
avpatelPaul Walmsley
authored andcommitted
RISC-V: Don't print details of CPUs disabled in DT
Early boot stages may disable CPU DT nodes for unavailable CPUs based on SKU, pinstraps, eFuse, etc. Currently, the riscv_early_of_processor_hartid() prints details of a CPU if it is disabled in DT which has no value and gives a false impression to the users that there some issue with the CPU. Fixes: e3d794d ("riscv: treat cpu devicetree nodes without status as enabled") Signed-off-by: Anup Patel <[email protected]> Reviewed-by: Andrew Jones <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paul Walmsley <[email protected]>
1 parent 768e054 commit d2721bb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

arch/riscv/kernel/cpu.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,8 @@ int __init riscv_early_of_processor_hartid(struct device_node *node, unsigned lo
6262
return -ENODEV;
6363
}
6464

65-
if (!of_device_is_available(node)) {
66-
pr_info("CPU with hartid=%lu is not available\n", *hart);
65+
if (!of_device_is_available(node))
6766
return -ENODEV;
68-
}
6967

7068
if (of_property_read_string(node, "riscv,isa-base", &isa))
7169
goto old_interface;

0 commit comments

Comments
 (0)