diff options
author | James Morse <[email protected]> | 2021-07-28 17:06:26 +0000 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2021-08-11 16:32:32 +0200 |
commit | e8f7282552b902af3bd1f07a87d657b7f5f12ab8 (patch) | |
tree | 3bd9c204b18cc18078144feaba4371b5c05bdb7f /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | e198fde3fe0892a5d1e28c0e29f1eebfb6f8c1cd (diff) |
x86/resctrl: Group staged configuration into a separate struct
When configuration changes are made, the new value is written to struct
rdt_domain's new_ctrl field and the have_new_ctrl flag is set. Later
new_ctrl is copied to hardware by a call to update_domains().
Once the CDP resources are merged, there will be one new_ctrl field in
use by two struct resctrl_schema requiring a per-schema IPI to copy the
value to hardware.
Move new_ctrl and have_new_ctrl into a new struct resctrl_staged_config.
Before the CDP resources can be merged, struct rdt_domain will need an
array of these, one per type of configuration. Using the type as an
index to the array will ensure that a schema configuration string can't
specify the same domain twice.
Signed-off-by: James Morse <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Reviewed-by: Jamie Iles <[email protected]>
Reviewed-by: Reinette Chatre <[email protected]>
Tested-by: Babu Moger <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions