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:07
Last Modify:2020-03-16 20:28:31 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cpu_detect

Proto:void cpu_detect(struct cpuinfo_x86 *c)

Type:void

Parameter:

TypeParameterName
struct cpuinfo_x86 *c
803  cpuid(0x00000000, (unsignedint * ) & Maximum supported CPUID level, -1=no CPUID: , (unsignedint * ) & x86_vendor_id[0], (unsignedint * ) & x86_vendor_id[8], (unsignedint * ) & x86_vendor_id[4])
808  CPU family = 4
810  If Maximum supported CPUID level, -1=no CPUID: >= 0x00000001 Then
813  cpuid(0x00000001, & tfms, & misc, & junk, & cap0)
814  CPU family = x86_family(tfms)
815  x86_model = x86_model(tfms)
816  x86_stepping = x86_stepping(tfms)
818  If cap0 & 1 << 19 Then
819  x86_clflush_size = ( misc >> 8 & 0xff) * 8
Caller
NameDescribe
early_identify_cpuDo minimum CPU detection early.* Fields really needed: vendor, cpuid_level, family, model, mask,* cache alignment.* The others are not touched to avoid unwanted side effects.* WARNING: this function is only called on the boot CPU. Don't add code
generic_identify