Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\ntp.c Create Date:2022-07-28 10:43:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sched_sync_hw_clock

Proto:static void sched_sync_hw_clock(struct timespec64 now, unsigned long target_nsec, bool fail)

Type:void

Parameter:

TypeParameterName
struct timespec64now
unsigned longtarget_nsec
boolfail
506  ktime_get_real_ts64 - Returns the time of day in a timespec64.*@ts: pointer to the timespec to be set* Returns the time of day in a timespec64 (WARN if suspended).
507  If Not fail Then seconds = 659
509  Else
516  seconds = 0
520  nanoseconds = target_nsec - nanoseconds
521  If nanoseconds <= 0 Then nanoseconds += NSEC_PER_SEC
523  If nanoseconds >= NSEC_PER_SEC Then
524  seconds ++
525  nanoseconds -= NSEC_PER_SEC
528  queue_delayed_work - queue work on a workqueue after delay*@wq: workqueue to use*@dwork: delayable work to queue*@delay: number of jiffies to wait before queueing* Equivalent to queue_delayed_work_on() but tries to use the local CPU.
Caller
NameDescribe
sync_rtc_clock
sync_cmos_clock