Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\posix-cpu-timers.c Create Date:2022-07-28 10:47:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Update expiry time from increment, and increase overrun count,* given the current clock sample.

Proto:static u64 bump_cpu_timer(struct k_itimer *timer, u64 now)

Type:u64

Parameter:

TypeParameterName
struct k_itimer *timer
u64now
127  expires = expires
130  If Not it_interval Then Return expires
133  If now < expires Then Return expires
136  incr = it_interval
137  delta = now + incr - expires
140  When incr < delta - incr cycle incr = incr << 1
143  When i >= 0 cycle
144  If delta < incr Then Continue
147  expires += incr
148  it_overrun += 1LL << i
149  delta -= incr
151  Return expires
Caller
NameDescribe
posix_cpu_timer_setGuts of sys_timer_settime for CPU timers.* This is called with the timer locked and interrupts disabled.* If we return TIMER_RETRY, it's necessary to release the timer's lock* and try again. (This happens when the timer is in the middle of firing.)
posix_cpu_timer_rearm