Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hange_clocksource - Swaps clocksources if a new one is available* Accumulates current time interval and initializes new clocksource

Proto:static int change_clocksource(void *data)

Type:int

Parameter:

TypeParameterName
void *data
1362  tk = timekeeper
1366  new = data
1368  raw_spin_lock_irqsave( & timekeeper_lock, flags)
1369  write_seqcount_begin( & seq)
1371  mekeeping_forward_now - update clock to the current time* Forward the current clock to update its state since the last call to* update_wall_time(). This is useful before significant clock changes,
1376  If try_module_get(owner) Then
1377  If Not enable || enable(new) == 0 Then
1378  old = clock
1380  If disable Then disable(old)
1382  module_put(owner)
1383  Else
1384  module_put(owner)
1387  must hold timekeeper_lock
1389  write_seqcount_end( & seq)
1390  raw_spin_unlock_irqrestore( & timekeeper_lock, flags)
1392  Return 0