函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\apic\apic.c Create Date:2022-07-27 09:26:33
Last Modify:2020-03-16 21:21:31 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:calibrate_by_pmtimer

函数原型:static int __init calibrate_by_pmtimer(long deltapm, long *delta, long *deltatsc)

返回类型:int

参数:

类型参数名称
longdeltapm
long *delta
long *deltatsc
758  pm_100ms等于Number of PMTMR ticks expected during calibration run 除10
759  pm_thresh等于pm_100ms除100
764  返回:负1
767  Define the default level of output to be very little* This can be turned up by using apic=verbose for more* information and apic=debug for _lots_ of information.* apic_verbosity is defined in apic.c(APIC_VERBOSE, "... PM-Timer delta = %ld\n", deltapm)
770  如果非deltapm则返回:负1
773  mult等于时钟源精度
775  如果deltapm大于pm_100mspm_threshdeltapm小于pm_100mspm_thresh
777  Define the default level of output to be very little* This can be turned up by using apic=verbose for more* information and apic=debug for _lots_ of information.* apic_verbosity is defined in apic.c(APIC_VERBOSE, "... PM-Timer result ok\n")
778  返回:0
781  res等于deltapmmult右移22位
782  do_div() is NOT a C function(res, 1000000)
783  打印警告信息("APIC calibration not consistent with PM-Timer: %ldms instead of 100ms\n", (long)res)
787  res等于deltapm_100ms
788  do_div() is NOT a C function(res, deltapm)
789  打印信息("APIC delta adjusted to PM-Timer: %lu (%ld)\n", (unsignedlong)res, * delta)
791  delta等于res
794  如果boot_cpu_has(Time Stamp Counter )则
795  res等于deltatscpm_100ms
796  do_div() is NOT a C function(res, deltapm)
797  Define the default level of output to be very little* This can be turned up by using apic=verbose for more* information and apic=debug for _lots_ of information.* apic_verbosity is defined in apic.c(APIC_VERBOSE, "TSC delta adjusted to PM-Timer: %lu (%ld)\n", (unsignedlong)res, * deltatsc)
800  deltatsc等于res
803  返回:0
调用者
名称描述
calibrate_APIC_clock