函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\hpet.c Create Date:2022-07-27 09:42:09
Last Modify:2020-03-16 21:38:50 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:hpet_counting

函数原型:static bool __init hpet_counting(void)

返回类型:bool

参数:

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  循环
800  如果t1不等于hpet_readl(HPET_COUNTER)则返回:true
802  now等于dtsc() - returns the current TSC without ordering constraints* rdtsc() returns the result of RDTSC as a 64-bit integer
803 nowstart小于200000UL循环
805  打印警告信息("Counter not counting. HPET disabled\n")
806  返回:false
调用者
名称描述
hpet_enablehpet_enable - Try to setup the HPET timer. Returns 1 on success.