函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Early 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.

函数原型:void __init apbt_time_init(void)

返回类型:void

参数:

290  如果apb_timer_block_enabled则返回
292  apbt_set_mapping()
293  如果非apbt_virt_address则转到:out_noapbt
300  如果Common DW APB timer info小于APBT_MIN_FREQCommon DW APB timer info大于APBT_MAX_FREQ
301  pr_debug("APBT has invalid freq 0x%lx\n", Common DW APB timer info)
302  转到:out_noapbt
304  如果apbt_clocksource_register()则
305  pr_debug("APBT has failed to register clocksource\n")
306  转到:out_noapbt
308  如果非apbt_clockevent_register()则apb_timer_block_enabled等于1
310  否则
311  pr_debug("APBT has failed to register clockevent\n")
312  转到:out_noapbt
341  返回
343  out_noapbt :
344  apbt_clear_mapping()
345  apb_timer_block_enabled等于0
346  panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.