diff options
author | James Morse <[email protected]> | 2021-07-28 17:06:37 +0000 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2021-08-11 18:39:42 +0200 |
commit | 5c3b63cdba441c6a530b974ff73b14161d96a0c3 (patch) | |
tree | 464801a2901ad0b692870ed811cc4708519b455c /scripts/gdb/linux/timerlist.py | |
parent | 327364d5b6b6f8c89d2d6253a986d80323512890 (diff) |
x86/resctrl: Merge the CDP resources
resctrl uses struct rdt_resource to describe the available hardware
resources. The domains of the CDP aliases share a single ctrl_val[]
array. The only differences between the struct rdt_hw_resource aliases
is the name and conf_type.
The name from struct rdt_hw_resource is visible to user-space. To
support another architecture, as many user-visible details should be
handled in the filesystem parts of the code that is common to all
architectures. The name and conf_type go together.
Remove conf_type and the CDP aliases. When CDP is supported and enabled,
schemata_list_create() can create two schemata using the single
resource, generating the CODE/DATA suffix to the schema name itself.
This allows the alloc_ctrlval_array() and complications around free()ing
the ctrl_val arrays to be removed.
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 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions