Function report |
Source Code:arch\x86\kernel\tsc.c |
Create Date:2022-07-28 07:46:28 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Even on processors with invariant TSC, TSC gets reset in some the* ACPI system sleep states. And in some systems BIOS seem to reinit TSC to* arbitrary value (still sync'd across cpu's) during resume from such sleep* states
Proto:void tsc_restore_sched_clock_state(void)
Type:void
Parameter:Nothing
935 | If Not sched_clock_stable() Then Return |
938 | local_irq_save(flags) |
946 | this_cpu_write(cyc2ns_offset, 0) |
947 | this_cpu_write(cyc2ns_offset, 0) |
949 | offset = cyc2ns_suspend - sched_clock() |
951 | for_each_possible_cpu(cpu) |
952 | per_cpu(cyc2ns_offset, cpu) = offset |
953 | per_cpu(cyc2ns_offset, cpu) = offset |
956 | local_irq_restore(flags) |
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 |