diff options
author | James Morse <[email protected]> | 2021-07-28 17:06:15 +0000 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2021-08-11 12:00:43 +0200 |
commit | 792e0f6f789bda5e31b1dbcfcc84068da36a79b1 (patch) | |
tree | 2f9bd1b5a0953e85321ed697f9e258f007979245 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 63c8b1231929b8aa80abc753c1c91b6b49e2c0b0 (diff) |
x86/resctrl: Split struct rdt_domain
resctrl is the defacto Linux ABI for SoC resource partitioning features.
To support it on another architecture, it needs to be abstracted from
the features provided by Intel RDT and AMD PQoS, and moved to /fs/.
struct rdt_domain contains a mix of architecture private details and
properties of the filesystem interface user-space uses.
Continue by splitting struct rdt_domain, into an architecture private
'hw' struct, which contains the common resctrl structure that would be
used by any architecture. The hardware values in ctrl_val and mbps_val
need to be accessed via helpers to allow another architecture to convert
these into a different format if necessary. After this split, filesystem
code paths touching a 'hw' struct indicates where an abstraction is
needed.
Splitting this structure only moves types around, and should not lead
to any change in behaviour.
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