Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\microcode\intel.c Create Date:2022-07-28 08:08:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:collect_cpu_info

Proto:static int collect_cpu_info(int cpu_num, struct cpu_signature *csig)

Type:int

Parameter:

TypeParameterName
intcpu_num
struct cpu_signature *csig
765  c = cpu_data(cpu_num)
768  memset(csig, 0, size of csig )
770  sig = CPUID functions returning a single datum
772  If x86_model >= 5 || CPU family > 6 Then
774  Access to machine-specific registers (available on 586 and better only)* Note: the rd* operations modify the parameters directly (without using* pointer indirection), this allows gcc to optimize better(MSR_IA32_PLATFORM_ID, val[0], val[1])
775  pf = 1 << ( val[1] >> 18 & 7)
778  rev = microcode
781  If sig != sig || pf != pf || rev != rev Then
782  pr_info("sig=0x%x, pf=0x%x, revision=0x%x\n", sig, pf, rev)
784  prev = csig
787  Return 0