Commit 9876b2ed authored by James Morse's avatar James Morse Committed by Zeng Heng
Browse files

x86/resctrl: Move ctrlval string parsing links away from the arch code

maillist inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8T2RT

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git/log/?h=mpam/snapshot/v6.7-rc2



---------------------------

How to parse the ctrlval strings from user-space is specified by a
function pointer the arch code specifies.

The strings are part of resctrl's ABI, and the functions and their caller
both live in the same file. Exporting the parsing functions and allowing
the architecture to choose allows another architecture to get this wrong.

Keep this all in the flesystem parts of resctrl. This should prevent any
architecture's string-parsing behaviour from varying without core code
changes. Use the fflags to spot caches and bandwidth resources, and use
the appropriate helper.

Signed-off-by: default avatarJames Morse <james.morse@arm.com>
Signed-off-by: default avatarZeng Heng <zengheng4@huawei.com>
parent a147ce14
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment