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:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:apbt_clocksource_register

Proto:static int apbt_clocksource_register(void)

Type:int

Parameter:Nothing

249  dw_apb_clocksource_start(clocksource_apbt)
252  t1 = dw_apb_clocksource_read(clocksource_apbt)
253  start = dtsc() - returns the current TSC without ordering constraints* rdtsc() returns the result of RDTSC as a 64-bit integer
261  Do
262  REP NOP (PAUSE) is a good thing to insert into busy-wait loops.
263  now = dtsc() - returns the current TSC without ordering constraints* rdtsc() returns the result of RDTSC as a 64-bit integer
264  When now - start < 200000UL cycle
267  If t1 == dw_apb_clocksource_read(clocksource_apbt) Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
270  dw_apb_clocksource_register(clocksource_apbt)
272  Return 0
Caller
NameDescribe
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.