Function report |
Source Code:kernel\time\jiffies.c |
Create Date:2022-07-28 10:44:28 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:register_refined_jiffies
Proto:int register_refined_jiffies(long cycles_per_second)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| long | cycles_per_second |
| 101 | refined_jiffies = The Jiffies based clocksource is the lowest common* denominator clock source which should function on* all systems |
| 102 | name = "refined-jiffies" |
| 103 | rating++ |
| 106 | cycles_per_tick = (cycles_per_second + HZ / 2 ) / HZ |
| 108 | shift_hz = cycles_per_second << 8 |
| 109 | shift_hz += cycles_per_tick / 2 |
| 112 | nsec_per_tick = NSEC_PER_SEC << 8 |
| 113 | nsec_per_tick += shift_hz / 2 |
| 119 | Return 0 |
| Name | Describe |
|---|---|
| setup_arch | setup_arch - architecture-specific boot-time initializations* Note: On x86_64, fixmaps are ready for use even before this is called. |
| 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 |