函数逻辑报告 |
Source Code:arch\x86\kernel\tsc.c |
Create Date:2022-07-27 08:46:15 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:quick_pit_calibrate
函数原型:static unsigned long quick_pit_calibrate(void)
返回类型:unsigned long
参数:无
525 | 如果非has_legacy_pic()则返回:0 |
529 | Basic port I/O |
540 | Basic port I/O |
543 | Basic port I/O |
544 | Basic port I/O |
554 | 如果pit_expect_msb(0xff, & tsc, & d1)则 |
555 | 以i小于等于MAX_QUICK_PIT_ITERATIONS循环 |
556 | 如果非pit_expect_msb(0xff - i, & delta, & d2)则退出 |
565 | 如果i恒等于1且d1加d2大于等于delta乘MAX_QUICK_PIT_ITERATIONS右移11位则返回:0 |
582 | 如果非This reads the current MSB of the PIT counter, and* checks if we are running on sufficiently fast and* non-virtualized hardware则退出 |
584 | 转到:success |
587 | 打印信息("Fast TSC calibration failed\n") |
588 | 返回:0 |
590 | success : |
605 | do_div() is NOT a C function(delta, i * 256 * 1000) |
606 | 打印信息("Fast TSC calibration using PIT\n") |
607 | 返回:delta |
名称 | 描述 |
---|---|
native_calibrate_cpu_early | ative_calibrate_cpu_early - can calibrate the cpu early in boot |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |