Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__clocksource_select

Proto:static void __clocksource_select(bool skipcur)

Type:void

Parameter:

TypeParameterName
boolskipcur
734  oneshot = tick_oneshot_mode_active()
738  best = clocksource_find_best(oneshot, skipcur)
739  If Not best Then Return
742  If Not strlen - Find the length of a string*@s: The string to be sized Then Go to found
747  If skipcur && cs == [Clocksource internal variables]---------* curr_clocksource:* currently selected clocksource Then Continue
749  If strcmp(name, override_name) != 0 Then Continue
756  If Not (flags & CLOCK_SOURCE_VALID_FOR_HRES) && oneshot Then
758  If flags & CLOCK_SOURCE_UNSTABLE Then
759  pr_warn("Override clocksource %s is unstable and not HRT compatible - cannot switch while in HRT/NOHZ mode\n", name)
761  override_name[0] = 0
762  Else
767  pr_info("Override clocksource %s is not currently HRT compatible - deferring\n", name)
770  Else best = cs
773  Break
776  found :
777  If [Clocksource internal variables]---------* curr_clocksource:* currently selected clocksource != best && Not mekeeping_notify - Install a new clock source*@clock: pointer to the clock source* This function is called from clocksource.c after a new, better clock* source has been registered. The caller holds the clocksource_mutex. Then
778  pr_info("Switched to clocksource %s\n", name)
779  [Clocksource internal variables]---------* curr_clocksource:* currently selected clocksource = best
Caller
NameDescribe
clocksource_selectlocksource_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.
clocksource_select_fallback