Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\common.c Create Date:2022-07-28 07:55:03
Last Modify:2020-03-16 20:28:31 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cpu_detect_cache_sizes

Proto:void cpu_detect_cache_sizes(struct cpuinfo_x86 *c)

Type:void

Parameter:

TypeParameterName
struct cpuinfo_x86 *c
672  n = Max extended CPUID function supported:
674  If n >= 0x80000005 Then
675  cpuid(0x80000005, & dummy, & ebx, & ecx, & edx)
676  KB - valid for CPUS which support this call: = (ecx >> 24) + (edx >> 24)
679  Number of 4K pages in DTLB/ITLB combined(in pages): = 0
683  If n < 0x80000006 Then Return
686  cpuid(0x80000006, & dummy, & ebx, & ecx, & edx)
687  l2size = ecx >> 16
690  Number of 4K pages in DTLB/ITLB combined(in pages): += ( ebx >> 16 & 0xfff) + (ebx & 0xfff)
704  KB - valid for CPUS which support this call: = l2size
Caller
NameDescribe
default_init
init_amd
init_hygon
init_nscHandle National Semiconductor branded processors
init_c3
init_transmeta
init_zhaoxin_cap