Function report |
Source Code:kernel\time\timer.c |
Create Date:2022-07-28 10:39:51 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:add_timer_on - start a timer on a particular CPU*@timer: the timer to be added*@cpu: the CPU to start it on* This is not very scalable on SMP. Double adds are not possible.
Proto:void add_timer_on(struct timer_list *timer, int cpu)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct timer_list * | timer | |
int | cpu |
1154 | new_base = get_timer_cpu_base(flags, cpu) |
1163 | flags |= TIMER_MIGRATING |
1165 | raw_spin_unlock( & lock) |
1167 | raw_spin_lock( & lock) |
1168 | WRITE_ONCE(flags, (flags & ~TIMER_BASEMASK) | cpu) |
1171 | forward_timer_base(base) |
1173 | debug_timer_activate(timer) |
1174 | internal_add_timer(base, timer) |
1175 | raw_spin_unlock_irqrestore( & lock, flags) |
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 |