Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\cpupri.c Create Date:2022-07-28 09:41:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Convert between a 140 based task->prio, and our 102 based cpupri

Proto:static int convert_prio(int prio)

Type:int

Parameter:

TypeParameterName
intprio
32  If prio == CPUPRI_INVALID Then cpupri = CPUPRI_INVALID
34  Else if prio == MAX_PRIO Then cpupri = CPUPRI_IDLE
36  Else if prio >= MAX_RT_PRIO Then cpupri = CPUPRI_NORMAL
38  Else cpupri = MAX_RT_PRIO - prio + 1
41  Return cpupri
Caller
NameDescribe
cpupri_findpupri_find - find the best (lowest-pri) CPU in the system*@cp: The cpupri context*@p: The task*@lowest_mask: A mask to fill in with selected CPUs (or NULL)* Note: This function returns the recommended CPUs as calculated during the* current invocation
cpupri_setpupri_set - update the CPU priority setting*@cp: The cpupri context*@cpu: The target CPU*@newpri: The priority (INVALID-RT99) to assign to this CPU* Note: Assumes cpu_rq(cpu)->lock is locked* Returns: (void)