函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\clocksource.c Create Date:2022-07-27 11:43:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:u64 clocksource_stop_suspend_timing(struct clocksource *cs, u64 cycle_now)

返回类型:u64

参数:

类型参数名称
struct clocksource *cs
u64cycle_now
565  nsec等于0
567  如果非suspend_clocksource则返回:0
575  如果clocksource_is_suspend(cs)则now等于cycle_now
577  否则now等于read(suspend_clocksource)
580  如果now大于suspend_start
581  delta等于clocksource_delta(now, suspend_start, mask)
583  nsec等于mul_u64_u32_shr(delta, mult, shift)
591  如果非clocksource_is_suspend(cs)且disabledisable(suspend_clocksource)
594  返回:nsec
调用者
名称描述
timekeeping_resumemekeeping_resume - Resumes the generic timekeeping subsystem.