mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-09-09 10:31:58 +01:00
lib: sbi_domain: Rename per-domain data to per-domain state
The per-domain sbi_domain_data hold each domain associated state like hart context in sbi_domain_context, mpxy state in sbi_mpxy, and others like each domain backed by the corresponding MPT (SMMPT). DATA reads as a generic name, while every use stores state. Rename functions and macros appropriately. There are no functional changes. Signed-off-by: Rahul Pathak <rahul.pathak@oss.qualcomm.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20260820121309.2551296-3-rahul.pathak@oss.qualcomm.com Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
@@ -687,10 +687,10 @@ int sbi_domain_register(struct sbi_domain *dom,
|
||||
}
|
||||
}
|
||||
|
||||
/* Setup data for the discovered domain */
|
||||
rc = sbi_domain_setup_data(dom);
|
||||
/* Setup state for the discovered domain */
|
||||
rc = sbi_domain_setup_state(dom);
|
||||
if (rc) {
|
||||
sbi_printf("%s: domain data setup failed for %s (error %d)\n",
|
||||
sbi_printf("%s: domain state setup failed for %s (error %d)\n",
|
||||
__func__, dom->name, rc);
|
||||
sbi_list_del(&dom->node);
|
||||
return rc;
|
||||
|
||||
Reference in New Issue
Block a user