diff options
author | Ricardo Neri <[email protected]> | 2024-11-27 16:22:47 -0800 |
---|---|---|
committer | Borislav Petkov (AMD) <[email protected]> | 2024-12-06 13:13:36 +0100 |
commit | 9677be09e5e4fbe48aeccb06ae3063c5eba331c3 (patch) | |
tree | 9e9735ccba27a1b52093c49cb7d3e308157670b4 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | b3fce429a1e030b50c1c91351d69b8667eef627b (diff) |
x86/cacheinfo: Delete global num_cache_leaves
Linux remembers cpu_cachinfo::num_leaves per CPU, but x86 initializes all
CPUs from the same global "num_cache_leaves".
This is erroneous on systems such as Meteor Lake, where each CPU has a
distinct num_leaves value. Delete the global "num_cache_leaves" and
initialize num_leaves on each CPU.
init_cache_level() no longer needs to set num_leaves. Also, it never had to
set num_levels as it is unnecessary in x86. Keep checking for zero cache
leaves. Such condition indicates a bug.
[ bp: Cleanup. ]
Signed-off-by: Ricardo Neri <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Cc: [email protected] # 6.3+
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions