Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:register_refined_jiffies

Proto:int register_refined_jiffies(long cycles_per_second)

Type:int

Parameter:

TypeParameterName
longcycles_per_second
101  refined_jiffies = The Jiffies based clocksource is the lowest common* denominator clock source which should function on* all systems
102  name = "refined-jiffies"
103  rating++
106  cycles_per_tick = (cycles_per_second + HZ / 2 ) / HZ
108  shift_hz = cycles_per_second << 8
109  shift_hz += cycles_per_tick / 2
110  do_div() is NOT a C function(shift_hz, cycles_per_tick)
112  nsec_per_tick = NSEC_PER_SEC << 8
113  nsec_per_tick += shift_hz / 2
114  do_div() is NOT a C function(nsec_per_tick, (u32)shift_hz)
116  mult = nsec_per_tick << Since jiffies uses a simple TICK_NSEC multiplier* conversion, the
118  Don't call this unless you are a default clocksource* (AKA: jiffies) and absolutely have to.
119  Return 0
Caller
NameDescribe
setup_archsetup_arch - architecture-specific boot-time initializations* Note: On x86_64, fixmaps are ready for use even before this is called.