函数逻辑报告 |
Source Code:arch\x86\kernel\apic\apic.c |
Create Date:2022-07-27 09:26:21 |
Last Modify:2020-03-16 21:21:31 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:This function sets up the local APIC timer, with a timeout of* 'clocks' APIC bus clock. During calibration we actually call* this function twice on the boot CPU, once with a bogus timeout* value, second time for real. The other (noncalibrating) CPUs
函数原型:static void __setup_APIC_LVTT(unsigned int clocks, int oneshot, int irqen)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned int | clocks | |
int | oneshot | |
int | irqen |
335 | 如果非oneshot则lvtt_value或等于APIC_LVT_TIMER_PERIODIC |
340 | 如果非Check, if the APIC is integrated or a separate chip则lvtt_value或等于SET_APIC_TIMER_BASE(APIC_TIMER_BASE_DIV) |
343 | 如果非irqen则lvtt_value或等于APIC_LVT_MASKED |
346 | apic_write(APIC_LVTT, lvtt_value) |
348 | 如果lvtt_value按位与APIC_LVT_TIMER_TSCDEADLINE则 |
354 | asm volatile |
356 | Print a one-time message (analogous to WARN_ONCE() et al):(debug-level messages "TSC deadline timer enabled\n") |
357 | 返回 |
364 | apic_write(APIC_TDCR, (tmp_value & ~(APIC_TDR_DIV_1 | APIC_TDR_DIV_TMBASE)) | APIC_TDR_DIV_16) |
368 | 如果非oneshot则apic_write(APIC_TMICT, clocks / Clock divisor ) |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |