summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnup Patel <[email protected]>2020-03-19 11:23:41 +0530
committerAnup Patel <[email protected]>2020-03-28 13:31:50 +0530
commit160c88535f07084051ebba97689fc4a7b2e9037c (patch)
tree593e42dc4a3165d5fcb8740f192be2ee4ebd631b /include
parent550ba88db1950d448f25cf71457ed89a91c401f7 (diff)
lib: utils: Improve fdt_cpu_fixup() implementation
Currently, the fdt_cpu_fixup() implementation assumes: 1. We have one CPU DT for each HART under /cpus DT node 2. The CPU DT nodes are named sequentially (i.e cpu@0, cpu@1, ...) which is not true for discontinuous and sparse HART ids (i.e. cpu@0, cpu@4, cpu@5). Generally, CPU DT node are named based on HART id and not HART index If any of the above assumptions are violated then the fdt_cpu_fixup() will not work. This improves fdt_cpu_fixup() implementation and makes it independent of above assumptions. Signed-off-by: Anup Patel <[email protected]> Reviewed-by: Bin Meng <[email protected]> Reviewed-by: Atish Patra <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions