Function report |
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 activity | Download SCCT | Chinese |
Name:__clocksource_select
Proto:static void __clocksource_select(bool skipcur)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| bool | skipcur |
| 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 |
| 773 | Break |
| 776 | found : |
| Name | Describe |
|---|---|
| clocksource_select | 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. |
| clocksource_select_fallback |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |