diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2024-03-02 22:22:09 +0300 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2024-03-07 16:41:15 +0300 |
commit | cb0cd4ee11142339f2d47eef6db274290b7a482d (patch) | |
tree | f4b921e7ec2e693d5dd284f5761e79dfcb575d6b /include/linux/compiler_attributes.h | |
parent | ed6776c96c60ffe92e79e8f18bf5afd2f6e0eb79 (diff) | |
download | linux-cb0cd4ee11142339f2d47eef6db274290b7a482d.tar.xz |
s390/cache: prevent rebuild of shared_cpu_list
With commit 36bbc5b4ffab ("cacheinfo: Allow early detection and population
of cache attributes") the shared cpu list for each cache level higher than
L1 is rebuilt even if the list already has been set up.
This is caused by the removal of the cpumask_empty() check within
cache_shared_cpu_map_setup().
However architectures can enforce that the shared cpu list is not rebuilt
by simply setting cpu_map_populated of the per cpu cache info structure to
true, which is also the fix for this problem.
Before:
$ cat /sys/devices/system/cpu/cpu1/cache/index2/shared_cpu_list
0-7
After:
$ cat /sys/devices/system/cpu/cpu1/cache/index2/shared_cpu_list
1
Fixes: 36bbc5b4ffab ("cacheinfo: Allow early detection and population of cache attributes")
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'include/linux/compiler_attributes.h')
0 files changed, 0 insertions, 0 deletions