函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\tick-broadcast.c Create Date:2022-07-27 11:50:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Check, if the device is disfunctional and a place holder, which* needs to be handled by the broadcast device.

函数原型:int tick_device_uses_broadcast(struct clock_event_device *dev, int cpu)

返回类型:int

参数:

类型参数名称
struct clock_event_device *dev
intcpu
165  bc等于evtdev
167  ret等于0
169  raw_spin_lock_irqsave( & tick_broadcast_lock, flags)
177  如果非tick_device_is_functional(dev)则
178  event_handler等于时钟中断函数
179  tick_device_setup_broadcast_func(dev)
180  设置CPU信息
181  如果mode恒等于TICKDEV_MODE_PERIODICStart the device in periodic mode
183  否则tick_broadcast_setup_oneshot(bc)
185  ret等于1
186  否则
191  如果非features按位与CLOCK_EVT_FEAT_C3STOP的值则清空CPU信息
193  否则tick_device_setup_broadcast_func(dev)
200  如果非测试CPU信息清空CPU信息
204  :mode恒等于TICKDEV_MODE_ONESHOT
214  ret等于0
215  退出
233  如果bc且非features按位与CLOCK_EVT_FEAT_HRTIMER的值则ret等于测试CPU信息
235  退出
236  默认
237  退出
240  raw_spin_unlock_irqrestore( & tick_broadcast_lock, flags)
241  返回:ret
调用者
名称描述
tick_setup_deviceSetup the tick device