Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

x86/cpu/intel: Rename CPUID(0x2) descriptors iterator parameter

The CPUID(0x2) descriptors iterator has been renamed from:

for_each_leaf_0x2_entry()

to:

for_each_cpuid_0x2_desc()

since it iterates over CPUID(0x2) cache and TLB "descriptors", not
"entries".

In the macro's x86/cpu call-site, rename the parameter denoting the
parsed descriptor at each iteration from 'entry' to 'desc'.

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: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: John Ogness <john.ogness@linutronix.de>
Cc: x86-cpuid@lists.linux.dev
Link: https://lore.kernel.org/r/20250508150240.172915-8-darwi@linutronix.de

authored by

Ahmed S. Darwish and committed by
Ingo Molnar
119deb95 4b21e71a

+6 -6
+6 -6
arch/x86/kernel/cpu/intel.c
··· 648 648 } 649 649 #endif 650 650 651 - static void intel_tlb_lookup(const struct leaf_0x2_table *entry) 651 + static void intel_tlb_lookup(const struct leaf_0x2_table *desc) 652 652 { 653 - short entries = entry->entries; 653 + short entries = desc->entries; 654 654 655 - switch (entry->t_type) { 655 + switch (desc->t_type) { 656 656 case STLB_4K: 657 657 tlb_lli_4k = max(tlb_lli_4k, entries); 658 658 tlb_lld_4k = max(tlb_lld_4k, entries); ··· 709 709 710 710 static void intel_detect_tlb(struct cpuinfo_x86 *c) 711 711 { 712 - const struct leaf_0x2_table *entry; 712 + const struct leaf_0x2_table *desc; 713 713 union leaf_0x2_regs regs; 714 714 u8 *ptr; 715 715 ··· 717 717 return; 718 718 719 719 cpuid_leaf_0x2(&regs); 720 - for_each_cpuid_0x2_desc(regs, ptr, entry) 721 - intel_tlb_lookup(entry); 720 + for_each_cpuid_0x2_desc(regs, ptr, desc) 721 + intel_tlb_lookup(desc); 722 722 } 723 723 724 724 static const struct cpu_dev intel_cpu_dev = {