| 函数逻辑报告 | 
| Source Code: arch\x86\kernel\tsc.c | Create Date:2022-07-27 08:46:19 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:alibrate cpu using pit, hpet, and ptimer methods. They are available* later in boot after acpi is initialized.
函数原型:static unsigned long pit_hpet_ptimer_calibrate_cpu(void)
返回类型:unsigned long
参数:无
| 712 | tsc_pit_min等于ULONG_MAX, tsc_ref_min等于ULONG_MAX | 
| 714 | hpet等于is_hpet_enabled() | 
| 744 | loopmin等于CAL_PIT_LOOPS | 
| 755 | local_irq_save(flags) | 
| 757 | tsc_pit_khz等于Try to calibrate the TSC against the Programmable* Interrupt Timer and return the frequency of the TSC* in kHz.* Return ULONG_MAX on failure to calibrate. | 
| 759 | local_irq_restore(flags) | 
| 762 | tsc_pit_min等于两数取小(tsc_pit_min, tsc_pit_khz) | 
| 769 | 如果tsc1恒等于ULLONG_MAX或tsc2恒等于ULLONG_MAX则继续下一循环 | 
| 778 | tsc_ref_min等于两数取小(tsc_ref_min, (unsignedlong)tsc2) | 
| 781 | delta等于tsc_pit_min乘100 | 
| 793 | 返回:tsc_ref_min | 
| 802 | 如果i恒等于1且tsc_pit_min恒等于ULONG_MAX则 | 
| 812 | 如果tsc_pit_min恒等于ULONG_MAX则 | 
| 814 | 打印警告信息("Unable to calibrate against PIT\n") | 
| 818 | 打印注释信息("No reference (HPET/PMTIMER) available\n") | 
| 819 | 返回:0 | 
| 823 | 如果tsc_ref_min恒等于ULONG_MAX则 | 
| 824 | 打印警告信息("HPET/PMTIMER calibration failed\n") | 
| 825 | 返回:0 | 
| 832 | 返回:tsc_ref_min | 
| 837 | 打印信息("Using PIT calibration value\n") | 
| 838 | 返回:tsc_pit_min | 
| 842 | 如果tsc_ref_min恒等于ULONG_MAX则 | 
| 843 | 打印警告信息("HPET/PMTIMER calibration failed. Using PIT calibration.\n") | 
| 844 | 返回:tsc_pit_min | 
| 852 | 打印警告信息("PIT calibration deviates from %s: %lu %lu\n", hpet ? "HPET" : "PMTIMER", tsc_pit_min, tsc_ref_min) | 
| 854 | 打印信息("Using PIT calibration value\n") | 
| 855 | 返回:tsc_pit_min | 
| 名称 | 描述 | 
|---|---|
| native_calibrate_cpu | ative_calibrate_cpu - calibrate the cpu | 
| determine_cpu_tsc_frequencies | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |