函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:init_amd_k7

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

返回类型:void

参数:

类型参数名称
struct cpuinfo_x86 *c
220  如果x86_model大于等于6且x86_model小于等于10则
221  如果非cpu_has(c, "sse" )则
222  打印信息("Enabling disabled K7/SSE Support.\n")
224  set_cpu_cap(c, "sse" )
233  如果x86_model恒等于8且x86_stepping大于等于1或x86_model大于8则
234  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_K7_CLK_CTL, l, h)
235  如果l按位与0xfff00000的值不等于0x20000000则
236  打印信息("CPU: CLK_CTL MSR was %x. Reprogramming to %x\n", l, ((l & 0x000fffff) | 0x20000000))
238  wrmsr(MSR_K7_CLK_CTL, (l & 0x000fffff) | 0x20000000, h)
243  如果非Index into per_cpu list: 则返回
251  如果x86_model恒等于6且x86_stepping恒等于0或x86_stepping恒等于1的值则返回
256  如果x86_model恒等于7且x86_stepping恒等于0则返回
266  如果x86_model恒等于6且x86_stepping大于等于2或x86_model恒等于7且x86_stepping大于等于1或x86_model大于7则如果cpu_has(c, MP Capable )则
270  返回
278  WARN_ONCE(1, "WARNING: This combination of AMD processors is not suitable for SMP.\n")
280  add_taint(TAINT_CPU_OUT_OF_SPEC, LOCKDEP_NOW_UNRELIABLE)
调用者
名称描述
init_amd