Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Check, if the device is disfunctional and a place holder, which* needs to be handled by the broadcast device.

Proto:int tick_device_uses_broadcast(struct clock_event_device *dev, int cpu)

Type:int

Parameter:

TypeParameterName
struct clock_event_device *dev
intcpu
165  bc = evtdev
167  ret = 0
169  raw_spin_lock_irqsave( & tick_broadcast_lock, flags)
177  If Not tick_device_is_functional(dev) Then
178  event_handler = Event handler for periodic ticks
179  tick_device_setup_broadcast_func(dev)
180  pumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
181  If mode == TICKDEV_MODE_PERIODIC Then Start the device in periodic mode
183  Else tick_broadcast_setup_oneshot(bc)
185  ret = 1
186  Else
191  If Not (features & CLOCK_EVT_FEAT_C3STOP) Then pumask_clear_cpu - clear a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
193  Else tick_device_setup_broadcast_func(dev)
200  If Not pumask_test_cpu - test for a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in @cpumask, else returns 0 Then pumask_clear_cpu - clear a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
204  Case mode == TICKDEV_MODE_ONESHOT
214  ret = 0
215  Break
217  Case mode == TICKDEV_MODE_PERIODIC
235  Break
236  Default
237  Break
240  raw_spin_unlock_irqrestore( & tick_broadcast_lock, flags)
241  Return ret
Caller
NameDescribe
tick_setup_deviceSetup the tick device