summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnup Patel <[email protected]>2020-09-25 10:08:24 +0530
committerAnup Patel <[email protected]>2020-10-20 14:00:06 +0530
commit530e95bd63f60337140ffa55de335e9acc3811b4 (patch)
tree2d8c030e74a7781299b05c64c9139ed7aed2c352 /include
parent3a30d2c34d9c287f49419b44c768ffb70764325c (diff)
lib: sbi: Optimize sbi_hsm_hart_started_mask() implementation
Instead of calling sbi_hsm_hart_get_state() in a loop, we can simply call a new inline __sbi_hsm_hart_get_state() which only takes "hartid" and enforce domain checks using sbi_domain_assigned_hartmask(). This patch optimizes sbi_hsm_hart_started_mask() as-per above. Signed-off-by: Anup Patel <[email protected]> Reviewed-by: Atish Patra <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions