Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
struct clocksource *cs
u64cycle_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
Caller
NameDescribe
timekeeping_resumemekeeping_resume - Resumes the generic timekeeping subsystem.