Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\apb_timer.c Create Date:2022-07-28 08:43:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:void __init apbt_time_init(void)

Type:void

Parameter:Nothing

290  If apb_timer_block_enabled Then Return
292  apbt_set_mapping()
293  If Not apbt_virt_address Then Go to out_noapbt
300  If Common DW APB timer info < APBT_MIN_FREQ || Common DW APB timer info > APBT_MAX_FREQ Then
301  pr_debug("APBT has invalid freq 0x%lx\n", Common DW APB timer info)
302  Go to out_noapbt
304  If apbt_clocksource_register() Then
305  pr_debug("APBT has failed to register clocksource\n")
306  Go to out_noapbt
308  If Not apbt_clockevent_register() Then apb_timer_block_enabled = 1
310  Else
311  pr_debug("APBT has failed to register clockevent\n")
312  Go to out_noapbt
341  Return
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.