mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-10-24 04:32:05 +01:00
lib: utils: check if CPU node is enabled
Ignore CPU nodes in FDT that are not enabled. Signed-off-by: Jan Remes <jan.remes@codasip.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
1 parent
90a9dd2b22
commit
616da52e18
3 files changed
+19
-1
No files matched your search
@@ -38,6 +38,9 @@ void fdt_cpu_fixup(void *fdt)
|
||||
if (err)
|
||||
continue;
|
||||
|
||||
if (!fdt_node_is_enabled(fdt, cpu_offset))
|
||||
continue;
|
||||
|
||||
/*
|
||||
* Disable a HART DT node if one of the following is true:
|
||||
* 1. The HART is not assigned to the current domain
|
||||
|
||||
Reference in new issue
Block a user