函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\apb_timer.c Create Date:2022-07-27 09:42:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:apbt_clockevent_register

函数原型:static int __init apbt_clockevent_register(void)

返回类型:int

参数:

137  adev等于this_cpu_ptr( & cpu_apbt_dev)
139  mtmr等于sfi_get_mtmr(APBT_CLOCKEVENT0_NUM)
140  如果(mtmr == NULL)则
141  printk(r conditions "Failed to get MTMR %d from SFI\n", APBT_CLOCKEVENT0_NUM)
143  返回:负ENODEV
146  num等于当前cpu ID()
147  timer等于dw_apb_clockevent_init(当前cpu ID(), "apbt0", intel_mid_timer_options == INTEL_MID_TIMER_LAPIC_APBT ? APBT_CLOCKEVENT_RATING - 100 : APBT_CLOCKEVENT_RATING, adev_virt_addr(adev), 0, Common DW APB timer info)
152  eoi = NULL
154  如果(intel_mid_timer_options == INTEL_MID_TIMER_LAPIC_APBT)则
155  HPET replaces the PIT, when enabled. So we need to know, which of* the two timers is used等于ced
156  printk(debug-level messages "%s clockevent registered as global\n", name)
160  dw_apb_clockevent_register(timer)
162  sfi_free_mtmr(mtmr)
163  返回:0
调用者
名称描述
apbt_time_initEarly setup the APBT timer, only use timer 0 for booting then switch to* per CPU timer if possible.* returns 1 if per cpu apbt is setup* returns 0 if no per cpu apbt is chosen* panic if set up failed, this is the only platform timer on Moorestown.