函数逻辑报告 |
Source Code:kernel\sched\cpupri.c |
Create Date:2022-07-27 10:42:00 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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)
函数原型:void cpupri_set(struct cpupri *cp, int cpu, int newpri)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct cpupri * | cp | |
int | cpu | |
int | newpri |
133 | currpri等于cpu_to_pri[cpu] |
135 | do_mb等于0 |
139 | BUG_ON(newpri >= SPDX-License-Identifier: GPL-2.0 ) |
150 | 如果此条件成立可能性大(为编译器优化)(newpri != CPUPRI_INVALID)则 |
151 | vec等于pri_to_cpu[newpri] |
153 | 设置CPU信息 |
159 | smp_mb__before_atomic() |
160 | atomic_inc( & count) |
161 | do_mb等于1 |
163 | 如果此条件成立可能性大(为编译器优化)(oldpri != CPUPRI_INVALID)则 |
164 | vec等于pri_to_cpu[oldpri] |
178 | 如果do_mb则smp_mb__after_atomic() |
185 | atomic_dec( & count) |
186 | smp_mb__after_atomic() |
187 | 清空CPU信息 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |