函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\posix-cpu-timers.c Create Date:2022-07-27 11:47:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Set cputime to sum_cputime if sum_cputime > cputime. Use cmpxchg* to avoid race conditions with concurrent updates to cputime.

函数原型:static inline void __update_gt_cputime(atomic64_t *cputime, u64 sum_cputime)

返回类型:void

参数:

类型参数名称
atomic64_t *cputime
u64sum_cputime
250  retry :
251  curr_cputime等于atomic64_read(cputime)
252  如果sum_cputime大于curr_cputime
253  如果atomic64_cmpxchg(cputime, curr_cputime, sum_cputime)不等于curr_cputime则转到:retry
调用者
名称描述
update_gt_cputime