函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:clockevents_config

函数原型:static void clockevents_config(struct clock_event_device *dev, unsigned int freq)

返回类型:void

参数:

类型参数名称
struct clock_event_device *dev
unsigned intfreq
476  如果非features按位与CLOCK_EVT_FEAT_ONESHOT的值则返回
484  sec等于max_delta_ticks
485  do_div() is NOT a C function(sec, freq)
486  如果非secsec等于1
488  否则如果sec大于600且max_delta_ticks大于UINT_MAXsec等于600
491  clockevents_calc_mult_shift(dev, freq, sec)
492  min_delta_ns等于cev_delta2ns(min_delta_ticks, dev, false)
493  max_delta_ns等于cev_delta2ns(max_delta_ticks, dev, true)
调用者
名称描述
clockevents_config_and_registerlockevents_config_and_register - Configure and register a clock event device*@dev: device to register*@freq: The clock frequency*@min_delta: The minimum clock ticks to program in oneshot mode*@max_delta: The maximum clock ticks to program in oneshot mode
__clockevents_update_freq