Function report |
Source Code:arch\x86\kernel\tsc.c |
Create Date:2022-07-28 07:46:18 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:quick_pit_calibrate
Proto:static unsigned long quick_pit_calibrate(void)
Type:unsigned long
Parameter:Nothing
| 525 | If Not has_legacy_pic() Then Return 0 |
| 529 | Basic port I/O |
| 540 | Basic port I/O |
| 543 | Basic port I/O |
| 544 | Basic port I/O |
| 554 | If pit_expect_msb(0xff, & tsc, & d1) Then |
| 555 | When i <= MAX_QUICK_PIT_ITERATIONS cycle |
| 556 | If Not pit_expect_msb(0xff - i, & delta, & d2) Then Break |
| 565 | If i == 1 && d1 + d2 >= delta * MAX_QUICK_PIT_ITERATIONS >> 11 Then Return 0 |
| 582 | If Not This reads the current MSB of the PIT counter, and* checks if we are running on sufficiently fast and* non-virtualized hardware Then Break |
| 584 | Go to success |
| 587 | pr_info("Fast TSC calibration failed\n") |
| 588 | Return 0 |
| 590 | success : |
| 605 | do_div() is NOT a C function(delta, i * 256 * 1000) |
| 606 | pr_info("Fast TSC calibration using PIT\n") |
| 607 | Return delta |
| Name | Describe |
|---|---|
| native_calibrate_cpu_early | ative_calibrate_cpu_early - can calibrate the cpu early in boot |
| 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 |