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

Name:k_broadcast_control - Enable/disable or force broadcast mode*@mode: The selected broadcast mode* Called when the system enters a state where affected tick devices* might stop. Note: TICK_BROADCAST_FORCE cannot be undone.

Proto:void tick_broadcast_control(enum tick_broadcast_mode mode)

Type:void

Parameter:

TypeParameterName
enum tick_broadcast_modemode
364  raw_spin_lock_irqsave( & tick_broadcast_lock, flags)
365  td = this_cpu_ptr( & Tick devices)
366  dev = evtdev
371  If Not dev || Not (features & CLOCK_EVT_FEAT_C3STOP) Then Go to out
374  If Not tick_device_is_functional(dev) Then Go to out
377  cpu = smp_processor_id()
378  bc = evtdev
379  bc_stopped = pumask_empty - *srcp == 0*@srcp: the cpumask to that all cpus < nr_cpu_ids are clear.
382  Case mode == TICK_BROADCAST_FORCE
383  tick_broadcast_forced = 1
385  Case mode == TICK_BROADCAST_ON
386  pumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
400  Break
402  Case mode == TICK_BROADCAST_OFF
403  If tick_broadcast_forced Then Break
405  pumask_clear_cpu - clear a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
411  Break
414  If bc Then
418  Else if bc_stopped Then
425  out :
426  raw_spin_unlock_irqrestore( & tick_broadcast_lock, flags)