Function report |
Source Code:kernel\time\tick-broadcast.c |
Create Date:2022-07-28 10:50:56 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:k_broadcast_control - Enable/disable or force broadcast mode*@mode: The selected broadcast mode* Called when the system enters a state where affected tick devices* might stop. Note: TICK_BROADCAST_FORCE cannot be undone.
Proto:void tick_broadcast_control(enum tick_broadcast_mode mode)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| enum tick_broadcast_mode | mode |
| 365 | td = this_cpu_ptr( & Tick devices) |
| 371 | If Not dev || Not (features & CLOCK_EVT_FEAT_C3STOP) Then Go to out |
| 374 | If Not tick_device_is_functional(dev) Then Go to out |
| 377 | cpu = smp_processor_id() |
| 379 | bc_stopped = pumask_empty - *srcp == 0*@srcp: the cpumask to that all cpus < nr_cpu_ids are clear. |
| 382 | Case mode == TICK_BROADCAST_FORCE |
| 383 | tick_broadcast_forced = 1 |
| 385 | Case mode == TICK_BROADCAST_ON |
| 386 | pumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer |
| 400 | Break |
| 402 | Case mode == TICK_BROADCAST_OFF |
| 403 | If tick_broadcast_forced Then Break |
| 407 | If mode == TICKDEV_MODE_PERIODIC Then Setup the device for a periodic tick |
| 411 | Break |
| 414 | If bc Then |
| 418 | Else if bc_stopped Then |
| 419 | If mode == TICKDEV_MODE_PERIODIC Then Start the device in periodic mode |
| 421 | Else tick_broadcast_setup_oneshot(bc) |
| 425 | out : |
| 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 |