Function report | 
Source Code:kernel\time\tick-common.c | 
Create Date:2022-07-28 10:50:25 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Setup the tick device
Proto:static void tick_setup_device(struct tick_device *td, struct clock_event_device *newdev, int cpu, const struct cpumask *cpumask)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct tick_device * | td | |
| struct clock_event_device * | newdev | |
| int | cpu | |
| const struct cpumask * | cpumask | 
| 205 | void( * handler)(struct clock_event_device * ) = NULL | 
| 206 | next_event = 0 | 
| 211 | If Not evtdev Then | 
| 217 | ick_do_timer_cpu is a timer core internal variable which holds the CPU NR* which is responsible for calling do_timer(), i = cpu | 
| 220 | tick_period = NSEC_PER_SEC / HZ | 
| 242 | mode = TICKDEV_MODE_PERIODIC | 
| 243 | Else | 
| 244 | handler = event_handler | 
| 245 | next_event = next_event | 
| 255 | If Not pumask_equal - *src1p == *src2p*@src1p: the first input*@src2p: the second input Then irq_set_affinity(irq, cpumask) | 
| 265 | If Check, if the device is disfunctional and a place holder, which* needs to be handled by the broadcast device. Then Return | 
| 268 | If mode == TICKDEV_MODE_PERIODIC Then Setup the device for a periodic tick | 
| Name | Describe | 
|---|---|
| tick_install_replacement | |
| tick_check_new_device | Check, if the new registered device should be used. Called with* clockevents_lock held and interrupts disabled. | 
| 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  |