Function report |
Source Code:kernel\time\clocksource.c |
Create Date:2022-07-28 10:44:06 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:locksource_stop_suspend_timing - Stop measuring the suspend timing*@cs: current clocksource from timekeeping*@cycle_now: current cycles from timekeeping* This function will calculate the suspend time from suspend timer.
Proto:u64 clocksource_stop_suspend_timing(struct clocksource *cs, u64 cycle_now)
Type:u64
Parameter:
Type | Parameter | Name |
---|---|---|
struct clocksource * | cs | |
u64 | cycle_now |
565 | nsec = 0 |
567 | If Not suspend_clocksource Then Return 0 |
575 | If clocksource_is_suspend(cs) Then now = cycle_now |
577 | Else now = read(suspend_clocksource) |
580 | If now > suspend_start Then |
581 | delta = clocksource_delta(now, suspend_start, mask) |
583 | nsec = mul_u64_u32_shr(delta, mult, shift) |
591 | If Not clocksource_is_suspend(cs) && disable Then disable(suspend_clocksource) |
594 | Return nsec |
Name | Describe |
---|---|
timekeeping_resume | mekeeping_resume - Resumes the generic timekeeping subsystem. |
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 |