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:53
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

Proto:int acpi_processor_ffh_cstate_probe(unsigned int cpu, struct acpi_processor_cx *cx, struct acpi_power_register *reg)

Type:int

Parameter:

TypeParameterName
unsigned intcpu
struct acpi_processor_cx *cx
struct acpi_power_register *reg
149  c = cpu_data(cpu)
152  If Not per CPU ptr || Maximum supported CPUID level, -1=no CPUID: < CPUID_MWAIT_LEAF Then Return -1
155  If bit_offset != NATIVE_CSTATE_BEYOND_HALT Then Return -1
158  percpu_entry = per_cpu_ptr(per CPU ptr , cpu)
159  eax = 0
160  ecx = 0
164  retval = work_on_cpu(cpu, acpi_processor_ffh_cstate_probe_cpu, cx)
165  If retval == 0 Then
167  eax = address
168  ecx = MWAIT_ECX_INTERRUPT_BREAK
176  If CPU vendor == X86_VENDOR_INTEL && Not (access_size & 0x2) Then bm_sts_skip = 1
179  Return retval