函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__clocksource_select

函数原型:static void __clocksource_select(bool skipcur)

返回类型:void

参数:

类型参数名称
boolskipcur
734  oneshot等于tick_oneshot_mode_active()
738  best等于clocksource_find_best(oneshot, skipcur)
739  如果非best则返回
742  如果非strlen - Find the length of a string*@s: The string to be sized则转到:found
747  如果skipcurcs恒等于[Clocksource internal variables]---------* curr_clocksource:* currently selected clocksource则继续下一循环
749  如果字符串比较不等于0则继续下一循环
756  如果非flags按位与CLOCK_SOURCE_VALID_FOR_HRES的值且oneshot
758  如果flags按位与CLOCK_SOURCE_UNSTABLE
759  打印警告信息("Override clocksource %s is unstable and not HRT compatible - cannot switch while in HRT/NOHZ mode\n", name)
761  override_name[0]等于0
762  否则
767  打印信息("Override clocksource %s is not currently HRT compatible - deferring\n", name)
770  否则best等于cs
773  退出
776  found :
777  如果[Clocksource internal variables]---------* curr_clocksource:* currently selected clocksource不等于best且非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.
778  打印信息("Switched to clocksource %s\n", name)
779  [Clocksource internal variables]---------* curr_clocksource:* currently selected clocksource等于best
调用者
名称描述
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