Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:acpi_processor_ffh_cstate_probe_cpu

Proto:static long acpi_processor_ffh_cstate_probe_cpu(void *_cx)

Type:long

Parameter:

TypeParameterName
void *_cx
101  cx = _cx
108  cpuid(CPUID_MWAIT_LEAF, & eax, & ebx, & ecx, & edx)
111  cstate_type = ( address >> MWAIT_SUBSTATE_SIZE & MWAIT_CSTATE_MASK) + 1
113  edx_part = edx >> cstate_type * MWAIT_SUBSTATE_SIZE
114  num_cstate_subtype = edx_part & MWAIT_SUBSTATE_MASK
116  retval = 0
118  If num_cstate_subtype == 0 Then
119  pr_warn(FW_BUG* Add this to a message where you are sure the firmware is buggy or behaves* really stupid or out of spec"ACPI MWAIT C-state 0x%x not supported by HW (0x%x)\n", address, edx_part)
121  retval = -1
122  Go to out
126  If Not (ecx & CPUID5_ECX_EXTENSIONS_SUPPORTED) || Not (ecx & CPUID5_ECX_INTERRUPT_BREAK) Then
128  retval = -1
129  Go to out
132  If Not mwait_supported[cstate_type] Then
133  mwait_supported[cstate_type] = 1
134  printk(debug-level messages "Monitor-Mwait will be used to enter C-%d state\n", type)
138  snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
141  out :
142  Return retval