Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static int apm_do_idle(void)

Type:int

Parameter:Nothing

838  ret = 0
839  idled = 0
840  err = 0
842  If Not need_resched() Then
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  If Not idled Then Return 0
850  If ret Then
856  If ++t < 5 Then
857  printk(debug-level messages "apm_do_idle failed (%d)\n", err)
858  t = jiffies
860  Return -1
862  clock_slowed = (flags & APM_IDLE_SLOWS_CLOCK) != 0
863  Return clock_slowed
Caller
NameDescribe
apm_cpu_idle