diff options
author | James Morse <james.morse@arm.com> | 2021-07-28 20:06:37 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2021-08-11 19:39:42 +0300 |
commit | 5c3b63cdba441c6a530b974ff73b14161d96a0c3 (patch) | |
tree | 464801a2901ad0b692870ed811cc4708519b455c /arch/x86/kernel/cpu/rdrand.c | |
parent | 327364d5b6b6f8c89d2d6253a986d80323512890 (diff) | |
download | linux-5c3b63cdba441c6a530b974ff73b14161d96a0c3.tar.xz |
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 <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-25-james.morse@arm.com
Diffstat (limited to 'arch/x86/kernel/cpu/rdrand.c')
0 files changed, 0 insertions, 0 deletions