Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__clocksource_update_freq_scale - Used update clocksource with new freq*@cs: clocksource to be registered*@scale: Scale factor multiplied against freq to get clocksource hz*@freq: clocksource frequency (cycles per second) divided by scale

Proto:void __clocksource_update_freq_scale(struct clocksource *cs, unsigned int scale, unsigned int freq)

Type:void

Parameter:

TypeParameterName
struct clocksource *cs
unsigned intscale
unsigned intfreq
866  If freq Then
876  sec = mask
877  do_div() is NOT a C function(sec, freq)
878  do_div() is NOT a C function(sec, scale)
879  If Not sec Then sec = 1
881  Else if sec > 600 && mask > UINT_MAX Then sec = 600
884  locks_calc_mult_shift - calculate mult/shift factors for scaled math of clocks*@mult: pointer to mult variable*@shift: pointer to shift variable*@from: frequency to convert from*@to: frequency to convert to*@maxsec: guaranteed runtime conversion range in
891  maxadj = locksource_max_adjustment- Returns max adjustment amount*@cs: Pointer to clocksource
892  When freq && ( mult + maxadj < mult || mult - maxadj > mult ) cycle
894  mult >>= 1
895  shift--
896  maxadj = locksource_max_adjustment- Returns max adjustment amount*@cs: Pointer to clocksource
903  WARN_ONCE(mult + maxadj < mult, "timekeeping: Clocksource %s might overflow on 11%% adjustment\n", name)
907  locksource_update_max_deferment - Updates the clocksource max_idle_ns & max_cycles*@cs: Pointer to clocksource to be updated
909  pr_info("%s: mask: 0x%llx max_cycles: 0x%llx, max_idle_ns: %lld ns\n", name, mask, max_cycles, max_idle_ns)
Caller
NameDescribe
__clocksource_register_scale__clocksource_register_scale - Used to install new clocksources*@cs: clocksource to be registered*@scale: Scale factor multiplied against freq to get clocksource hz*@freq: clocksource frequency (cycles per second) divided by scale