Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:clockevents_config

Proto:static void clockevents_config(struct clock_event_device *dev, unsigned int freq)

Type:void

Parameter:

TypeParameterName
struct clock_event_device *dev
unsigned intfreq
476  If Not (features & CLOCK_EVT_FEAT_ONESHOT) Then Return
484  sec = max_delta_ticks
485  do_div() is NOT a C function(sec, freq)
486  If Not sec Then sec = 1
488  Else if sec > 600 && max_delta_ticks > UINT_MAX Then sec = 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)
Caller
NameDescribe
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