Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\clocksource.h Create Date:2022-07-28 07:33:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:clocksource_freq2mult

Proto:static inline unsigned int clocksource_freq2mult(unsigned int freq, unsigned int shift_constant, u64 from)

Type:unsigned int

Parameter:

TypeParameterName
unsigned intfreq
unsigned intshift_constant
u64from
136  tmp = from << shift_constant
138  tmp += freq / 2
139  do_div() is NOT a C function(tmp, freq)
141  Return tmp