Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-28 09:36:17
Last Modify:2022-05-22 13:40:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dle_cpu - is a given CPU idle currently?*@cpu: the processor in question.* Return: 1 if the CPU is currently idle. 0 otherwise.

Proto:int idle_cpu(int cpu)

Type:int

Parameter:

TypeParameterName
intcpu
4634  rq = cpu_rq(cpu)
4636  If curr != idle Then Return 0
4639  If * nr_running and cpu_load should be in the same cacheline because * remote CPUs use both these fields when doing load calculation. Then Return 0
4647  Return 1
Caller
NameDescribe
available_idle_cpuavailable_idle_cpu - is a given CPU idle for enqueuing work.*@cpu: the CPU in question.* Return: 1 if the CPU is currently idle. 0 otherwise.