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:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Check, if the new registered device should be used. Called with* clockevents_lock held and interrupts disabled.

Proto:void tick_check_new_device(struct clock_event_device *newdev)

Type:void

Parameter:

TypeParameterName
struct clock_event_device *newdev
344  cpu = smp_processor_id()
345  td = per_cpu(Tick devices, cpu)
346  curdev = evtdev
349  If Not tick_check_percpu(curdev, newdev, cpu) Then Go to out_bc
353  If Not tick_check_preferred(curdev, newdev) Then Go to out_bc
356  If Not try_module_get(owner) Then Return
364  If Check, if the device is the broadcast device Then
365  lockevents_shutdown - shutdown the device and clear next_event*@dev: device to shutdown
366  curdev = NULL
368  lockevents_exchange_device - release and request clock devices*@old: device to release (can be NULL)*@new: device to request (can be NULL)* Called from various tick functions with clockevents_lock held and* interrupts disabled.
369  Setup the tick device
370  If features & CLOCK_EVT_FEAT_ONESHOT Then tick_oneshot_notify()
372  Return
374  out_bc :
378  Conditionally install/replace broadcast device
Caller
NameDescribe
clockevents_notify_releasedCalled after a notify add to make devices available which were* released from the notifier call.
clockevents_register_devicelockevents_register_device - register a clock event device*@dev: device to register