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

Name:apbt_clockevent_register

Proto:static int __init apbt_clockevent_register(void)

Type:int

Parameter:Nothing

137  adev = this_cpu_ptr( & cpu_apbt_dev)
139  mtmr = sfi_get_mtmr(APBT_CLOCKEVENT0_NUM)
140  If (mtmr == NULL) Then
141  printk(r conditions "Failed to get MTMR %d from SFI\n", APBT_CLOCKEVENT0_NUM)
143  Return -ENODEV
146  num = smp_processor_id()
147  timer = dw_apb_clockevent_init(smp_processor_id(), "apbt0", intel_mid_timer_options == INTEL_MID_TIMER_LAPIC_APBT ? APBT_CLOCKEVENT_RATING - 100 : APBT_CLOCKEVENT_RATING, adev_virt_addr(adev), 0, Common DW APB timer info)
152  eoi = NULL
154  If (intel_mid_timer_options == INTEL_MID_TIMER_LAPIC_APBT) Then
155  HPET replaces the PIT, when enabled. So we need to know, which of* the two timers is used = ced
156  printk(debug-level messages "%s clockevent registered as global\n", name)
160  dw_apb_clockevent_register(timer)
162  sfi_free_mtmr(mtmr)
163  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.