Function report |
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 activity | Download SCCT | Chinese |
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 |
| 156 | printk(debug-level messages "%s clockevent registered as global\n", name) |
| 162 | sfi_free_mtmr(mtmr) |
| 163 | Return 0 |
| Name | Describe |
|---|---|
| apbt_time_init | 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. |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |