函数逻辑报告

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

函数名称:apbt_clocksource_register

函数原型:static int apbt_clocksource_register(void)

返回类型:int

参数:

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  循环
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 nowstart小于200000UL循环
267  如果t1恒等于dw_apb_clocksource_read(clocksource_apbt)则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  返回: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.