函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\tsc.c Create Date:2022-07-27 08:46:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:void tsc_restore_sched_clock_state(void)

返回类型:void

参数:

935  如果非sched_clock_stable()则返回
938  local_irq_save(flags)
946  抢占保护下的写CPU(cyc2ns_offset, 0)
947  抢占保护下的写CPU(cyc2ns_offset, 0)
949  offset等于cyc2ns_suspendsched_clock()
951  遍历可用CPU(cpu)
952  per_cpu(cyc2ns_offset, cpu)等于offset
953  per_cpu(cyc2ns_offset, cpu)等于offset
956  local_irq_restore(flags)