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

Name:Setup the tick device

Proto:static void tick_setup_device(struct tick_device *td, struct clock_event_device *newdev, int cpu, const struct cpumask *cpumask)

Type:void

Parameter:

TypeParameterName
struct tick_device *td
struct clock_event_device *newdev
intcpu
const struct cpumask *cpumask
205  void( * handler)(struct clock_event_device * ) = NULL
206  next_event = 0
211  If Not evtdev Then
242  mode = TICKDEV_MODE_PERIODIC
243  Else
244  handler = event_handler
245  next_event = next_event
246  event_handler = Noop handler when we shut down an event device
249  evtdev = newdev
255  If Not pumask_equal - *src1p == *src2p*@src1p: the first input*@src2p: the second input Then irq_set_affinity(irq, cpumask)
265  If Check, if the device is disfunctional and a place holder, which* needs to be handled by the broadcast device. Then Return
268  If mode == TICKDEV_MODE_PERIODIC Then Setup the device for a periodic tick
270  Else k_setup_oneshot - setup the event device for oneshot mode (hres or nohz)
Caller
NameDescribe
tick_install_replacement
tick_check_new_deviceCheck, if the new registered device should be used. Called with* clockevents_lock held and interrupts disabled.