函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Setup the tick device

函数原型:static void tick_setup_device(struct tick_device *td, struct clock_event_device *newdev, int cpu, const struct cpumask *cpumask)

返回类型:void

参数:

类型参数名称
struct tick_device *td
struct clock_event_device *newdev
intcpu
const struct cpumask *cpumask
205  void( * handler)(struct clock_event_device * ) = NULL
206  next_event等于0
211  如果非evtdev
220  tick_period等于NSEC_PER_SECHZ
242  mode等于TICKDEV_MODE_PERIODIC
243  否则
244  handler等于event_handler
245  next_event等于next_event
246  event_handler等于Noop handler when we shut down an event device
249  evtdev等于newdev
255  如果非pumask_equal - *src1p == *src2p*@src1p: the first input*@src2p: the second input设置中断关系
265  如果Check, if the device is disfunctional and a place holder, which* needs to be handled by the broadcast device.则返回
268  如果mode恒等于TICKDEV_MODE_PERIODICSetup the device for a periodic tick
270  否则k_setup_oneshot - setup the event device for oneshot mode (hres or nohz)
调用者
名称描述
tick_install_replacement
tick_check_new_deviceCheck, if the new registered device should be used. Called with* clockevents_lock held and interrupts disabled.