Commit 09ca1f41 authored by James Morse's avatar James Morse Committed by Zeng Heng
Browse files

x86/resctrl: Stop using the for_each_*_rdt_resource() walkers

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



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

The for_each_*_rdt_resource() helpers walk the architectures array
of structures, using the resctrl visible part as an iterator.

To support resctrl, another architecture would have to provide equally
complex macros.

Change the resctrl code that uses these to walk through the resource_level
enum instead. Instances in core.c, and resctrl_arch_reset_resources()
remain part of x86's architecture specific code.

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