Function report |
Source Code:arch\x86\kernel\tsc.c |
Create Date:2022-07-28 07:46:14 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Read TSC and the reference counters. Take care of any disturbances
Proto:static u64 tsc_read_refs(u64 *p, int hpet)
Type:u64
Parameter:
Type | Parameter | Name |
---|---|---|
u64 * | p | |
int | hpet |
312 | thresh = If tsc_khz Then tsc_khz >> 5 Else TSC_DEFAULT_THRESHOLD |
315 | When i < MAX_RETRIES cycle |
316 | t1 = get_cycles() |
317 | If hpet Then p = hpet_readl(HPET_COUNTER) & 0xFFFFFFFF |
319 | Else p = acpi_pm_read_early() |
321 | t2 = get_cycles() |
325 | Return ULLONG_MAX |
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. |
tsc_refine_calibration_work |
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 |