summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAnup Patel <apatel@ventanamicro.com>2025-10-14 22:00:09 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-29 14:10:27 +0100
commit8d7b0f5eff7cc23d03e162f7a5e6e13d144d9cb9 (patch)
treea1c4106726f0884e95a303e33aff950116726d1f /arch
parent30e2dd4067da3a4aa2f88c2c34f7b12756f1dd90 (diff)
downloadlinux-8d7b0f5eff7cc23d03e162f7a5e6e13d144d9cb9.tar.gz
linux-8d7b0f5eff7cc23d03e162f7a5e6e13d144d9cb9.tar.bz2
linux-8d7b0f5eff7cc23d03e162f7a5e6e13d144d9cb9.zip
RISC-V: Don't print details of CPUs disabled in DT
[ Upstream commit d2721bb165b3ee00dd23525885381af07fec852a ] 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: e3d794d555cd ("riscv: treat cpu devicetree nodes without status as enabled") Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20251014163009.182381-1-apatel@ventanamicro.com Signed-off-by: Paul Walmsley <pjw@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/riscv/kernel/cpu.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/riscv/kernel/cpu.c b/arch/riscv/kernel/cpu.c
index f6b13e9f5e6c..3dbc8cc557dd 100644
--- a/arch/riscv/kernel/cpu.c
+++ b/arch/riscv/kernel/cpu.c
@@ -62,10 +62,8 @@ int __init riscv_early_of_processor_hartid(struct device_node *node, unsigned lo
return -ENODEV;
}
- if (!of_device_is_available(node)) {
- pr_info("CPU with hartid=%lu is not available\n", *hart);
+ if (!of_device_is_available(node))
return -ENODEV;
- }
if (of_property_read_string(node, "riscv,isa-base", &isa))
goto old_interface;