]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/cpu: Simplify TLB entry count storage
authorAhmed S. Darwish <darwi@linutronix.de>
Tue, 4 Mar 2025 08:51:18 +0000 (09:51 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 4 Mar 2025 10:17:33 +0000 (11:17 +0100)
commit8b7e54b542103753619a37cbb3216849a934872f
tree6f4096d5035e42a26d087be5ad7aca4e4372b146
parentcb5f4c76b2a9314c35e00c67c98ccd03542c2634
x86/cpu: Simplify TLB entry count storage

Commit:

  e0ba94f14f74 ("x86/tlb_info: get last level TLB entry number of CPU")

introduced u16 "info" arrays for each TLB type.

Since 2012 and each array stores just one type of information: the
number of TLB entries for its respective TLB type.

Replace such arrays with simple variables.

Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20250304085152.51092-8-darwi@linutronix.de
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/amd.c
arch/x86/kernel/cpu/common.c
arch/x86/kernel/cpu/hygon.c
arch/x86/kernel/cpu/intel.c