lib: sbi: Fix typo in sbi_domain_finalize()
There has been typo in automatic domain boot hart startup for non-root domains so this patch fixes it. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
parent
8d2edc4fc9
commit
3d921fad0d
|
@ -404,12 +404,12 @@ int sbi_domain_finalize(struct sbi_scratch *scratch, u32 cold_hartid)
|
||||||
dhart = dom->boot_hartid;
|
dhart = dom->boot_hartid;
|
||||||
|
|
||||||
/* Ignore if boot HART not possible for this domain */
|
/* Ignore if boot HART not possible for this domain */
|
||||||
if (!sbi_hartmask_test_hart(i, dom->possible_harts))
|
if (!sbi_hartmask_test_hart(dhart, dom->possible_harts))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* Ignore if boot HART assigned different domain */
|
/* Ignore if boot HART assigned different domain */
|
||||||
if (sbi_hartid_to_domain(dhart) != dom ||
|
if (sbi_hartid_to_domain(dhart) != dom ||
|
||||||
!sbi_hartmask_test_hart(i, &dom->assigned_harts))
|
!sbi_hartmask_test_hart(dhart, &dom->assigned_harts))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* Startup boot HART of domain */
|
/* Startup boot HART of domain */
|
||||||
|
|
Loading…
Reference in New Issue