Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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 !

Proto:void clockevents_switch_state(struct clock_event_device *dev, enum clock_event_state state)

Type:void

Parameter:

TypeParameterName
struct clock_event_device *dev
enum clock_event_statestate
150  If clockevent_get_state(dev) != state Then
151  If __clockevents_switch_state(dev, state) Then Return
154  clockevent_set_state(dev, state)
160  If clockevent_state_oneshot(dev) Then
161  If WARN_ON(!mult) Then mult = 1
Caller
NameDescribe
clockevents_shutdownlockevents_shutdown - shutdown the device and clear next_event*@dev: device to shutdown
clockevents_exchange_devicelockevents_exchange_device - release and request clock devices*@old: device to release (can be NULL)*@new: device to request (can be NULL)* Called from various tick functions with clockevents_lock held and* interrupts disabled.
tick_setup_periodicSetup the device for a periodic tick
tick_program_eventk_program_event
tick_resume_oneshotk_resume_onshot - resume oneshot mode
tick_setup_oneshotk_setup_oneshot - setup the event device for oneshot mode (hres or nohz)
tick_switch_to_oneshotk_switch_to_oneshot - switch to oneshot mode