函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:tsc_verify_tsc_adjust

函数原型:void tsc_verify_tsc_adjust(bool resume)

返回类型:void

参数:

类型参数名称
boolresume
50  adj等于this_cpu_ptr( & tsc_adjust)
53  如果非boot_cpu_has(TSC adjustment MSR 0x3B )则返回
57  如果check_tsc_unstable()则返回
61  如果非resumetime_before(jiffies, nextcheck)则返回
64  nextcheck等于jiffiesHZ
66  rdmsrl(MSR_IA32_TSC_ADJUST, curval)
67  如果adjusted恒等于curval则返回
71  wrmsrl(MSR_IA32_TSC_ADJUST, adjusted)
73  如果非warnedresume
74  打印警告信息(FW_BUG* Add this to a message where you are sure the firmware is buggy or behaves* really stupid or out of spec"TSC ADJUST differs: CPU%u %lld --> %lld. Restoring\n", 当前cpu ID(), adjusted, curval)
76  warned = true
调用者
名称描述
arch_cpu_idle_enter
tsc_resumelocksource code