函数逻辑报告 |
Source Code:arch\x86\kernel\apb_timer.c |
Create Date:2022-07-27 09:42:38 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:alled before apb_timer_enable, use early map
函数原型:unsigned long apbt_quick_calibrate(void)
返回类型:unsigned long
参数:无
| 355 | khz等于0 |
| 358 | apbt_set_mapping() |
| 363 | i等于10000 |
| 365 | 如果old不等于dw_apb_clocksource_read(clocksource_apbt)则退出 |
| 372 | loop等于Common DW APB timer info除1000左移4位 |
| 380 | t1等于dtsc() - returns the current TSC without ordering constraints* rdtsc() returns the result of RDTSC as a 64-bit integer |
| 382 | 循环 |
| 386 | t2等于dtsc() - returns the current TSC without ordering constraints* rdtsc() returns the result of RDTSC as a 64-bit integer |
| 388 | shift等于5 |
| 389 | 如果此条件成立可能性小(为编译器优化)(loop >> shift == 0)则 |
| 390 | printk(formational "APBT TSC calibration failed, not enough resolution\n") |
| 392 | 返回:0 |
| 395 | khz等于scale乘Common DW APB timer info除1000右移shift位 |
| 396 | printk(formational "TSC freq calculated by APB timer is %lu khz\n", khz) |
| 397 | 返回:khz |
| 398 | failed : |
| 399 | 返回:0 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |