函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\hygon.c Create Date:2022-07-27 08:59:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:init_hygon

函数原型:static void init_hygon(struct cpuinfo_x86 *c)

返回类型:void

参数:

类型参数名称
struct cpuinfo_x86 *c
308  early_init_hygon(c)
314  clear_cpu_cap(c, 0 * 32 + 31)
316  set_cpu_cap(c, REP microcode works well )
319  apicid等于hard_smp_processor_id()
321  set_cpu_cap(c, "" CPU is AMD family 0x17 (Zen) )
322  set_cpu_cap(c, AMD Core Performance Boost )
324  cpu_detect_cache_sizes(c)
326  On Hygon setup the lower bits of the APIC id distinguish the cores.* Assumes number of cores is a power of two.
327  Fixup core topology information for* (1) Hygon multi-node processors* Assumption: Number of cores in each internal node is the same.* (2) Hygon processors supporting compute units
328  srat_detect_node(c)
330  init_hygon_cacheinfo(c)
332  如果cpu_has(c, "sse2" )则
339  Set @bit in a MSR @msr.* Retval:* < 0: An error was encountered.* = 0: Bit was already set.* > 0: Hardware accepted the MSR write.
343  set_cpu_cap(c, "" LFENCE synchronizes RDTSC )
349  set_cpu_cap(c, Always Running APIC Timer )
352  如果非cpu_has(c, "" Xen paravirtual guest )则set_cpu_bug(c, SYSRET doesn't fix up SS attrs )