x86/resctrl: Rename update_domains() to resctrl_arch_update_domains()
update_domains() merges the staged configuration changes into the arch codes configuration array. Rename to make it clear it is part of the arch code interface to resctrl. Signed-off-by: James Morse <james.morse@arm.com> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Jamie Iles <jamie@nuviainc.com> Reviewed-by: Reinette Chatre <reinette.chatre@intel.com> Tested-by: Babu Moger <babu.moger@amd.com> Link: https://lkml.kernel.org/r/20210728170637.25610-16-james.morse@arm.com
This commit is contained in:
committed by
Borislav Petkov
parent
75408e4350
commit
2e6678195d
@@ -259,7 +259,7 @@ static void apply_config(struct rdt_hw_domain *hw_dom,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int update_domains(struct rdt_resource *r, int closid)
|
int resctrl_arch_update_domains(struct rdt_resource *r, u32 closid)
|
||||||
{
|
{
|
||||||
struct resctrl_staged_config *cfg;
|
struct resctrl_staged_config *cfg;
|
||||||
struct rdt_hw_domain *hw_dom;
|
struct rdt_hw_domain *hw_dom;
|
||||||
@@ -380,7 +380,7 @@ ssize_t rdtgroup_schemata_write(struct kernfs_open_file *of,
|
|||||||
|
|
||||||
list_for_each_entry(s, &resctrl_schema_all, list) {
|
list_for_each_entry(s, &resctrl_schema_all, list) {
|
||||||
r = s->res;
|
r = s->res;
|
||||||
ret = update_domains(r, rdtgrp->closid);
|
ret = resctrl_arch_update_domains(r, rdtgrp->closid);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -529,7 +529,6 @@ void rdt_pseudo_lock_release(void);
|
|||||||
int rdtgroup_pseudo_lock_create(struct rdtgroup *rdtgrp);
|
int rdtgroup_pseudo_lock_create(struct rdtgroup *rdtgrp);
|
||||||
void rdtgroup_pseudo_lock_remove(struct rdtgroup *rdtgrp);
|
void rdtgroup_pseudo_lock_remove(struct rdtgroup *rdtgrp);
|
||||||
struct rdt_domain *get_domain_from_cpu(int cpu, struct rdt_resource *r);
|
struct rdt_domain *get_domain_from_cpu(int cpu, struct rdt_resource *r);
|
||||||
int update_domains(struct rdt_resource *r, int closid);
|
|
||||||
int closids_supported(void);
|
int closids_supported(void);
|
||||||
void closid_free(int closid);
|
void closid_free(int closid);
|
||||||
int alloc_rmid(void);
|
int alloc_rmid(void);
|
||||||
|
|||||||
@@ -2870,7 +2870,7 @@ static int rdtgroup_init_alloc(struct rdtgroup *rdtgrp)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = update_domains(r, rdtgrp->closid);
|
ret = resctrl_arch_update_domains(r, rdtgrp->closid);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
rdt_last_cmd_puts("Failed to initialize allocations\n");
|
rdt_last_cmd_puts("Failed to initialize allocations\n");
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
@@ -199,5 +199,6 @@ struct resctrl_schema {
|
|||||||
|
|
||||||
/* The number of closid supported by this resource regardless of CDP */
|
/* The number of closid supported by this resource regardless of CDP */
|
||||||
u32 resctrl_arch_get_num_closid(struct rdt_resource *r);
|
u32 resctrl_arch_get_num_closid(struct rdt_resource *r);
|
||||||
|
int resctrl_arch_update_domains(struct rdt_resource *r, u32 closid);
|
||||||
|
|
||||||
#endif /* _RESCTRL_H */
|
#endif /* _RESCTRL_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user