函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\clocksource.c Create Date:2022-07-27 11:44:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__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

函数原型:int __clocksource_register_scale(struct clocksource *cs, unsigned int scale, unsigned int freq)

返回类型:int

参数:

类型参数名称
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  返回:0