函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:apm_do_idle - perform power saving* This function notifies the BIOS that the processor is (in the view* of the OS) idle. It returns -1 in the event that the BIOS refuses* to handle the idle request. On a success the function returns 1

函数原型:static int apm_do_idle(void)

返回类型:int

参数:

838  ret等于0
839  idled等于0
840  err等于0
842  如果非need_resched()则
843  idled等于1
844  ret等于apm_bios_call_simple - make a simple APM BIOS 32bit call*@func: APM function to invoke*@ebx_in: EBX register value for BIOS call*@ecx_in: ECX register value for BIOS call*@eax: EAX register on return from the BIOS call*@err: bits
847  如果非idled则返回:0
850  如果ret
856  如果t先自加小于5则
857  printk(debug-level messages "apm_do_idle failed (%d)\n", err)
858  t等于jiffies
860  返回:负1
862  clock_slowed等于电源管理标志按位与APM_IDLE_SLOWS_CLOCK的值不等于0
863  返回:clock_slowed
调用者
名称描述
apm_cpu_idle