aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorJames Morse <[email protected]>2021-07-28 17:06:35 +0000
committerBorislav Petkov <[email protected]>2021-08-11 16:33:48 +0000
commitfbc06c69805976e1b5c7e6bd0b89c5b0f5282cdf (patch)
treebd3ed1e40cf1b689cf3f6e9f9d0e9365cfb9fa9e /lib/string_helpers.c
parentx86/resctrl: Merge the ctrl_val arrays (diff)
downloadkernel-fbc06c69805976e1b5c7e6bd0b89c5b0f5282cdf.tar.gz
kernel-fbc06c69805976e1b5c7e6bd0b89c5b0f5282cdf.zip
x86/resctrl: Remove rdt_cdp_peer_get()
When CDP is enabled, rdt_cdp_peer_get() finds the alternative CODE/DATA resource and returns the alternative domain. This is used to determine if bitmaps overlap when there are aliased entries in the two struct rdt_hw_resources. Now that the ctrl_val[] used by the CODE/DATA resources is the same, the search for an alternate resource/domain is not needed. Replace rdt_cdp_peer_get() with resctrl_peer_type(), which returns the alternative type. This can be passed to resctrl_arch_get_config() with the same resource and domain. 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 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions