diff options
author | Ahmed S. Darwish <darwi@linutronix.de> | 2025-03-24 16:33:23 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-03-25 12:23:30 +0300 |
commit | 6c963c42fc19d7c9ae9582ab75c3476d1752d979 (patch) | |
tree | dc028c1fc8163b24c3a06f162dcd58c4634c113b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | eeeebc4fc642f492522e4be92dcaf22119123581 (diff) | |
download | linux-6c963c42fc19d7c9ae9582ab75c3476d1752d979.tar.xz |
x86/cacheinfo: Introduce cpuid_amd_hygon_has_l3_cache()
Multiple code paths at cacheinfo.c and amd_nb.c check for AMD/Hygon CPUs
L3 cache presensce by directly checking leaf 0x80000006 EDX output.
Extract that logic into its own function. While at it, rework the
AMD/Hygon LLC topology ID caclculation comments for clarity.
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-29-darwi@linutronix.de
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions