函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\tick-broadcast.c Create Date:2022-07-27 11:50:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:void tick_broadcast_control(enum tick_broadcast_mode mode)

返回类型:void

参数:

类型参数名称
enum tick_broadcast_modemode
364  raw_spin_lock_irqsave( & tick_broadcast_lock, flags)
365  td等于this_cpu_ptr( & Tick devices)
366  dev等于evtdev
371  如果非dev或非features按位与CLOCK_EVT_FEAT_C3STOP的值则转到:out
374  如果非tick_device_is_functional(dev)则转到:out
377  cpu等于当前cpu ID()
378  bc等于evtdev
379  bc_stopped等于pumask_empty - *srcp == 0*@srcp: the cpumask to that all cpus < nr_cpu_ids are clear.
382  :mode恒等于TICK_BROADCAST_FORCE
383  tick_broadcast_forced等于1
385  :mode恒等于TICK_BROADCAST_ON
386  设置CPU信息
387  如果非自动测试并设置CPU信息
400  退出
402  :mode恒等于TICK_BROADCAST_OFF
403  如果tick_broadcast_forced退出
405  清空CPU信息
411  退出
414  如果bc
418  否则如果bc_stopped
425  out :
426  raw_spin_unlock_irqrestore( & tick_broadcast_lock, flags)