Function report |
Source Code:kernel\time\posix-cpu-timers.c |
Create Date:2022-07-28 10:47:30 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Set cputime to sum_cputime if sum_cputime > cputime. Use cmpxchg* to avoid race conditions with concurrent updates to cputime.
Proto:static inline void __update_gt_cputime(atomic64_t *cputime, u64 sum_cputime)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
atomic64_t * | cputime | |
u64 | sum_cputime |
250 | retry : |
251 | curr_cputime = atomic64_read(cputime) |
252 | If sum_cputime > curr_cputime Then |
253 | If atomic64_cmpxchg(cputime, curr_cputime, sum_cputime) != curr_cputime Then Go to retry |
Name | Describe |
---|---|
update_gt_cputime |
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 |