Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\tick-common.c Create Date:2022-07-28 10:50:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Setup the device for a periodic tick

Proto:void tick_setup_periodic(struct clock_event_device *dev, int broadcast)

Type:void

Parameter:

TypeParameterName
struct clock_event_device *dev
intbroadcast
150  Set the periodic handler depending on broadcast on/off
153  If Not tick_device_is_functional(dev) Then Return
156  If features & CLOCK_EVT_FEAT_PERIODIC && Not tick_broadcast_oneshot_active() Then
158  lockevents_switch_state - set the operating state of a clock event device*@dev: device to modify*@state: new state* Must be called with interrupts disabled !
159  Else
163  Do
166  When read_seqretry( & jiffies_lock, seq) cycle
168  lockevents_switch_state - set the operating state of a clock event device*@dev: device to modify*@state: new state* Must be called with interrupts disabled !
170  cycle
Caller
NameDescribe
tick_setup_deviceSetup the tick device
tick_resume_localk_resume_local - Resume the local tick device* Called from the local CPU for unfreeze or XEN resume magic.* No locks required. Nothing can change the per cpu device.
tick_broadcast_start_periodicStart the device in periodic mode
tick_broadcast_controlk_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.