diff options
author | Ahmed S. Darwish <darwi@linutronix.de> | 2025-03-24 14:33:23 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-03-25 10:23:30 +0100 |
commit | 6c963c42fc19d7c9ae9582ab75c3476d1752d979 (patch) | |
tree | dc028c1fc8163b24c3a06f162dcd58c4634c113b /scripts/lib/kdoc/kdoc_re.py | |
parent | eeeebc4fc642f492522e4be92dcaf22119123581 (diff) |
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 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions