Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:init_amd_k7

Proto:static void init_amd_k7(struct cpuinfo_x86 *c)

Type:void

Parameter:

TypeParameterName
struct cpuinfo_x86 *c
220  If x86_model >= 6 && x86_model <= 10 Then
221  If Not cpu_has(c, "sse" ) Then
222  pr_info("Enabling disabled K7/SSE Support.\n")
224  set_cpu_cap(c, "sse" )
233  If x86_model == 8 && x86_stepping >= 1 || x86_model > 8 Then
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  If (l & 0xfff00000) != 0x20000000 Then
236  pr_info("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  If Not Index into per_cpu list: Then Return
251  If x86_model == 6 && ( x86_stepping == 0 || x86_stepping == 1 ) Then Return
256  If x86_model == 7 && x86_stepping == 0 Then Return
266  If x86_model == 6 && x86_stepping >= 2 || x86_model == 7 && x86_stepping >= 1 || x86_model > 7 Then If cpu_has(c, MP Capable ) Then
270  Return
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)
Caller
NameDescribe
init_amd