Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\timekeeping_debug.c Create Date:2022-07-28 10:52:26
Last Modify:2020-03-17 14:56:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:tk_debug_account_sleep_time

Proto:void tk_debug_account_sleep_time(const struct timespec64 *t)

Type:void

Parameter:

TypeParameterName
const struct timespec64 *t
49  bin = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(ls - find last set bit in word*@x: the word to search* This is defined in a similar way as the libc and compiler builtin* ffs, but returns the position of the most significant set bit.* fls(value) returns 0 if value is 0 or the position of the last, NUM_BINS - 1)
51  sleep_time_bin[bin]++
52  pm_deferred_pr_dbg("Timekeeping suspended for %lld.%03lu seconds\n", (s64) seconds , nanoseconds / NSEC_PER_MSEC)
Caller
NameDescribe
__timekeeping_inject_sleeptime__timekeeping_inject_sleeptime - Internal function to add sleep interval*@delta: pointer to a timespec delta value* Takes a timespec offset measuring a suspend interval and properly* adds the sleep offset to the timekeeping variables.