Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static int __init clocksource_done_booting(void)

Type:int

Parameter:Nothing

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  Return 0