Function report |
Source Code:arch\x86\kernel\tsc.c |
Create Date:2022-07-28 07:46:42 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:tsc_init
Proto:void __init tsc_init(void)
Type:void
Parameter:Nothing
| 1475 | If calibrate_cpu == ative_calibrate_cpu_early - can calibrate the cpu early in boot Then calibrate_cpu = ative_calibrate_cpu - calibrate the cpu |
| 1478 | If Not boot_cpu_has(Time Stamp Counter ) Then |
| 1480 | Return |
| 1483 | If Not tsc_khz Then |
| 1485 | If Not determine_cpu_tsc_frequencies(false) Then |
| 1486 | mark_tsc_unstable("could not calculate TSC khz") |
| 1488 | Return |
| 1490 | tsc_enable_sched_clock() |
| 1495 | If Not no_sched_irq_time Then enable_sched_clock_irqtime() |
| 1498 | lpj_fine = get_loops_per_jiffy() |
| 1499 | use_tsc_delay() |
| 1501 | check_system_tsc_reliable() |
| 1504 | mark_tsc_unstable("TSCs unsynchronized") |
| 1505 | Return |
| 1508 | If tsc_clocksource_reliable || no_tsc_watchdog Then flags &= ~CLOCK_SOURCE_MUST_VERIFY |
| 1511 | clocksource_register_khz( & .mask MUST be CLOCKSOURCE_MASK(64). See comment above read_tsc(), tsc_khz) |
| Name | Describe |
|---|---|
| x86_late_time_init |
| 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 |