Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:init_tsc_clocksource

Proto:static int __init init_tsc_clocksource(void)

Type:int

Parameter:Nothing

1366  If Not boot_cpu_has(Time Stamp Counter ) || Not tsc_khz Then Return 0
1369  If TSC can be unstable due to cpufreq or due to unsynced TSCs Then Go to unreg
1372  If tsc_clocksource_reliable || no_tsc_watchdog Then flags &= ~CLOCK_SOURCE_MUST_VERIFY
1375  If boot_cpu_has(TSC doesn't stop in S3 state ) Then flags |= CLOCK_SOURCE_SUSPEND_NONSTOP
1382  If boot_cpu_has(TSC has known frequency ) Then
1383  If boot_cpu_has(Always running timer (ART) ) Then art_related_clocksource = Must mark VALID_FOR_HRES early such that when we unregister tsc_early* this one will immediately take over. We will only register if TSC has* been found good.
1385  clocksource_register_khz( & Must mark VALID_FOR_HRES early such that when we unregister tsc_early* this one will immediately take over. We will only register if TSC has* been found good., tsc_khz)
1386  unreg :
1387  clocksource_unregister( & .mask MUST be CLOCKSOURCE_MASK(64). See comment above read_tsc())
1388  Return 0
1391  schedule_delayed_work - put work task in global workqueue after delay*@dwork: job to be done*@delay: number of jiffies to wait or 0 for immediate execution* After waiting for a given time this puts a job in the kernel-global* workqueue.
1392  Return 0