Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\tsc_sync.c Create Date:2022-07-28 08:24:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:tsc_verify_tsc_adjust

Proto:void tsc_verify_tsc_adjust(bool resume)

Type:void

Parameter:

TypeParameterName
boolresume
50  adj = this_cpu_ptr( & tsc_adjust)
53  If Not boot_cpu_has(TSC adjustment MSR 0x3B ) Then Return
57  If check_tsc_unstable() Then Return
61  If Not resume && time_before(jiffies, nextcheck) Then Return
64  nextcheck = jiffies + HZ
66  rdmsrl(MSR_IA32_TSC_ADJUST, curval)
67  If adjusted == curval Then Return
71  wrmsrl(MSR_IA32_TSC_ADJUST, adjusted)
73  If Not warned || resume Then
74  pr_warn(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", smp_processor_id(), adjusted, curval)
76  warned = true
Caller
NameDescribe
arch_cpu_idle_enter
tsc_resumelocksource code