函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\clocksource.h Create Date:2022-07-27 08:33:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:clocksource_freq2mult

函数原型:static inline unsigned int clocksource_freq2mult(unsigned int freq, unsigned int shift_constant, u64 from)

返回类型:unsigned int

参数:

类型参数名称
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  返回:tmp
调用者
名称描述
clocksource_khz2multlocksource_khz2mult - calculates mult from khz and shift*@khz: Clocksource frequency in KHz*@shift_constant: Clocksource shift factor* Helper functions that converts a khz counter frequency to a timsource* multiplier, given the clocksource shift value
clocksource_hz2mult时钟源精度