Function report |
Source Code:kernel\time\hrtimer.c |
Create Date:2022-07-28 10:40:47 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__remove_hrtimer - internal function to remove a timer* Caller must hold the base lock.* High resolution timer mode reprograms the clock event device when the* timer is the one which expires next. The caller can disable this by setting* reprogram to zero
Proto:static void __remove_hrtimer(struct hrtimer *timer, struct hrtimer_clock_base *base, u8 newstate, int reprogram)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct hrtimer * | timer | |
struct hrtimer_clock_base * | base | |
u8 | newstate | |
int | reprogram |
993 | WRITE_ONCE(state, newstate) |
994 | If Not (state & HRTIMER_STATE_ENQUEUED) Then Return |
1008 | If reprogram && timer == next_timer Then Reprogram the event source with checking both queues for the* next event* Called with interrupts disabled and base->lock held |
Name | Describe |
---|---|
remove_hrtimer | move hrtimer, called with base lock held |
__run_hrtimer | The write_seqcount_barrier()s in __run_hrtimer() split the thing into 3* distinct sections:* - queued: the timer is queued* - callback: the timer is being ran* - post: the timer is inactive or (re)queued* On the read side we ensure we observe timer->state |
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 |