函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hpet_legacy_clockevent_register

函数原型:static void __init hpet_legacy_clockevent_register(struct hpet_channel *hc)

返回类型:void

参数:

类型参数名称
struct hpet_channel *hc
421  cpu等于cpu_index
422  strncpy(name, "hpet", name的长度)
423  hpet_init_clockevent(hc, 50)
425  tick_resume等于hpet_clkevt_legacy_resume
455  features或等于CLOCK_EVT_FEAT_PERIODIC
456  set_state_periodic等于hpet_clkevt_set_state_periodic
459  hpet_enable_legacy_int()
461  lockevents_config_and_register - Configure and register a clock event device*@dev: device to register*@freq: The clock frequency*@min_delta: The minimum clock ticks to program in oneshot mode*@max_delta: The maximum clock ticks to program in oneshot mode
463  HPET replaces the PIT, when enabled. So we need to know, which of* the two timers is used等于evt
464  pr_debug("Clockevent registered\n")
调用者
名称描述
hpet_enablehpet_enable - Try to setup the HPET timer. Returns 1 on success.