函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:locksource_done_booting - Called near the end of core bootup* Hack to avoid lots of clocksource churn at boot time.* We use fs_initcall because we want this to start before* device_initcall but after subsys_initcall.

函数原型:static int __init clocksource_done_booting(void)

返回类型:int

参数:

816  mutex_lock( & clocksource_mutex)
817  [Clocksource internal variables]---------* curr_clocksource:* currently selected clocksource等于clocksource_default_clock()
818  finished_booting等于1
822  __clocksource_watchdog_kthread()
823  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.
824  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.
825  返回:0