Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__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

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

Type:int

Parameter:

TypeParameterName
struct clocksource *cs
unsigned intscale
unsigned intfreq
929  clocksource_arch_init(cs)
932  __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
935  mutex_lock( & clocksource_mutex)
937  clocksource_watchdog_lock( & flags)
938  Enqueue the clocksource sorted by rating
939  clocksource_enqueue_watchdog(cs)
940  clocksource_watchdog_unlock( & flags)
942  locksource_select - Select the best clocksource available* Private function. Must hold clocksource_mutex when called.* Select the clocksource with the best rating, or the clocksource,* which is selected by userspace override.
943  clocksource_select_watchdog(false)
944  __clocksource_suspend_select(cs)
945  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
946  Return 0