Function report |
Source Code:arch\x86\kernel\tsc.c |
Create Date:2022-07-28 07:46:16 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static unsigned long pit_calibrate_tsc(unsigned int latch, unsigned long ms, int loopmin)
Type:unsigned long
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned int | latch | |
| unsigned long | ms | |
| int | loopmin |
| 387 | If Not has_legacy_pic() Then |
| 398 | Return ULONG_MAX |
| 402 | Basic port I/O |
| 409 | Basic port I/O |
| 410 | Basic port I/O |
| 411 | Basic port I/O |
| 413 | tsc = t1 = t2 = get_cycles() |
| 415 | pitcnt = 0 |
| 416 | tscmax = 0 |
| 419 | t2 = get_cycles() |
| 426 | pitcnt++ |
| 444 | Return delta |
| Name | Describe |
|---|---|
| pit_hpet_ptimer_calibrate_cpu | alibrate cpu using pit, hpet, and ptimer methods. They are available* later in boot after acpi is initialized. |
| 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 |