Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\hpet.c Create Date:2022-07-28 08:43:01
Last Modify:2020-03-16 21:38:50 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:hpet_counting

Proto:static bool __init hpet_counting(void)

Type:bool

Parameter:Nothing

788  hpet_restart_counter()
790  t1 = hpet_readl(HPET_COUNTER)
791  start = dtsc() - returns the current TSC without ordering constraints* rdtsc() returns the result of RDTSC as a 64-bit integer
799  Do
800  If t1 != hpet_readl(HPET_COUNTER) Then Return true
802  now = dtsc() - returns the current TSC without ordering constraints* rdtsc() returns the result of RDTSC as a 64-bit integer
803  When now - start < 200000UL cycle
805  pr_warn("Counter not counting. HPET disabled\n")
806  Return false
Caller
NameDescribe
hpet_enablehpet_enable - Try to setup the HPET timer. Returns 1 on success.