diff options
| author | Ahmed S. Darwish <darwi@linutronix.de> | 2025-03-24 14:33:05 +0100 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2025-03-25 10:22:29 +0100 |
| commit | 1374ff60ed0d4cedd55f653edd3f59f9f19c4171 (patch) | |
| tree | a11bb229b945b13b23364496d5d5ed553757a70d /tools/perf/scripts/python | |
| parent | x86/cacheinfo: Align ci_info_init() assignment expressions (diff) | |
| download | linux-1374ff60ed0d4cedd55f653edd3f59f9f19c4171.tar.gz linux-1374ff60ed0d4cedd55f653edd3f59f9f19c4171.zip | |
x86/cacheinfo: Standardize _cpuid4_info_regs instance naming
The cacheinfo code frequently uses the output registers from CPUID leaf
0x4. Such registers are cached in 'struct _cpuid4_info_regs', augmented
with related information, and are then passed across functions.
The naming of these _cpuid4_info_regs instances is confusing at best.
Some instances are called "this_leaf", which is vague as "this" lacks
context and "leaf" is overly generic given that other CPUID leaves are
also processed within cacheinfo. Other _cpuid4_info_regs instances are
just called "base", adding further ambiguity.
Standardize on id4 for all instances.
Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20250324133324.23458-11-darwi@linutronix.de
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
