forked from Mirrors/opensbi
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:
@@ -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