函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:acpi_processor_ffh_cstate_probe_cpu

函数原型:static long acpi_processor_ffh_cstate_probe_cpu(void *_cx)

返回类型:long

参数:

类型参数名称
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_typeMWAIT_SUBSTATE_SIZE
114  num_cstate_subtype等于edx_part按位与MWAIT_SUBSTATE_MASK
116  retval等于0
118  如果num_cstate_subtype恒等于0则
119  打印警告信息(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  转到:out
126  如果非ecx按位与CPUID5_ECX_EXTENSIONS_SUPPORTED的值或非ecx按位与CPUID5_ECX_INTERRUPT_BREAK的值则
128  retval等于负1
129  转到:out
132  如果非mwait_supported[cstate_type]则
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  返回:retval