Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:locks_calc_max_nsecs - Returns maximum nanoseconds that can be converted*@mult: cycle to nanosecond multiplier*@shift: cycle to nanosecond divisor (power of two)*@maxadj: maximum adjustment value to mult (~11%)*@mask: bitmask for two's complement

Proto:u64 clocks_calc_max_nsecs(unsigned int mult, unsigned int shift, unsigned int maxadj, u64 mask, u64 *max_cyc)

Type:u64

Parameter:

TypeParameterName
unsigned intmult
unsigned intshift
unsigned intmaxadj
u64mask
u64 *max_cyc
674  max_cycles = ULLONG_MAX
675  do_div() is NOT a C function(max_cycles, mult + maxadj)
683  max_cycles = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(max_cycles, mask)
684  max_nsecs = locksource_cyc2ns - converts clocksource cycles to nanoseconds*@cycles: cycles*@mult: cycle to nanosecond multiplier*@shift: cycle to nanosecond divisor (power of two)* Converts clocksource cycles to nanoseconds, using the given @mult and @shift
687  If max_cyc Then max_cyc = max_cycles
691  max_nsecs >>= 1
693  Return max_nsecs
Caller
NameDescribe
clocksource_update_max_defermentlocksource_update_max_deferment - Updates the clocksource max_idle_ns & max_cycles*@cs: Pointer to clocksource to be updated
sched_clock_register