Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cev_delta2ns

Proto:static u64 cev_delta2ns(unsigned long latch, struct clock_event_device *evt, bool ismax)

Type:u64

Parameter:

TypeParameterName
unsigned longlatch
struct clock_event_device *evt
boolismax
35  clc = latch << shift
38  If WARN_ON(!mult) Then mult = 1
40  rnd = mult - 1
46  If clc >> shift != latch Then clc = ~0ULL
68  If ~0ULL - clc > rnd && ( Not ismax || mult <= 1ULL << shift ) Then clc += rnd
72  do_div() is NOT a C function(clc, mult)
75  Return If clc > 1000 Then clc Else 1000
Caller
NameDescribe
clockevent_delta2nslockevents_delta2ns - Convert a latch value (device ticks) to nanoseconds*@latch: value to convert*@evt: pointer to clock event device descriptor* Math helper, returns latch value converted to nanoseconds (bound checked)
clockevents_config