Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:tick_check_preferred

Proto:static bool tick_check_preferred(struct clock_event_device *curdev, struct clock_event_device *newdev)

Type:bool

Parameter:

TypeParameterName
struct clock_event_device *curdev
struct clock_event_device *newdev
305  If Not (features & CLOCK_EVT_FEAT_ONESHOT) Then
306  If curdev && features & CLOCK_EVT_FEAT_ONESHOT Then Return false
308  If tick_oneshot_mode_active() Then Return false
316  Return Not curdev || rating > rating || Not pumask_equal - *src1p == *src2p*@src1p: the first input*@src2p: the second input
Caller
NameDescribe
tick_check_replacementCheck whether the new device is a better fit than curdev. curdev* can be NULL !
tick_check_new_deviceCheck, if the new registered device should be used. Called with* clockevents_lock held and interrupts disabled.