forked from Mirrors/opensbi
lib: sbi: Use sbi_hartmask in sbi_hsm_hart_interruptible_mask()
This removes several hartid/hartindex conversions, as well as two loops through the mask for broadcast IPIs. Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:

committed by
Anup Patel

parent
ebe0f31446
commit
fe153c5516
@@ -226,14 +226,13 @@ extern struct sbi_dlist domain_list;
|
||||
bool sbi_domain_is_assigned_hart(const struct sbi_domain *dom, u32 hartid);
|
||||
|
||||
/**
|
||||
* Get ulong assigned HART mask for given domain and HART base ID
|
||||
* Get the assigned HART mask for given domain
|
||||
* @param dom pointer to domain
|
||||
* @param hbase the HART base ID
|
||||
* @return ulong possible HART mask
|
||||
* Note: the return ulong mask will be set to zero on failure.
|
||||
* @param mask the output hartmask to fill
|
||||
* @return 0 on success and SBI_Exxx (< 0) on failure
|
||||
*/
|
||||
ulong sbi_domain_get_assigned_hartmask(const struct sbi_domain *dom,
|
||||
ulong hbase);
|
||||
int sbi_domain_get_assigned_hartmask(const struct sbi_domain *dom,
|
||||
struct sbi_hartmask *mask);
|
||||
|
||||
/**
|
||||
* Initialize a domain memory region based on it's physical
|
||||
|
Reference in New Issue
Block a user