Function report |
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 activity | Download SCCT | Chinese |
Name:Convert between a 140 based task->prio, and our 102 based cpupri
Proto:static int convert_prio(int prio)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | prio |
| 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 |
| Name | Describe |
|---|---|
| cpupri_find | pupri_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_set | pupri_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) |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |