函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lockevents_register_device - register a clock event device*@dev: device to register

函数原型:void clockevents_register_device(struct clock_event_device *dev)

返回类型:void

参数:

类型参数名称
struct clock_event_device *dev
449  clockevent_set_state(dev, CLOCK_EVT_STATE_DETACHED)
451  如果非cpumask
452  WARN_ON(num_possible_cpus() > 1)
453  cpumask等于cpumask_of - the cpumask containing just a given cpu*@cpu: the cpu (<= nr_cpu_ids)(当前cpu ID())
456  如果cpumask恒等于cpu_all_mask
457  WARN(1, "%s cpumask == cpu_all_mask, using cpu_possible_mask instead\n", name)
459  cpumask等于cpu_possible_mask
462  raw_spin_lock_irqsave( & Protection for the above , flags)
464  添加链表项
465  Check, if the new registered device should be used. Called with* clockevents_lock held and interrupts disabled.
466  Called after a notify add to make devices available which were* released from the notifier call.
468  raw_spin_unlock_irqrestore( & Protection for the above , flags)
调用者
名称描述
setup_APIC_timerSetup the local APIC timer for this CPU. Copy the initialized values* of the boot CPU and register the clock event in the framework.
clockevents_config_and_registerlockevents_config_and_register - Configure and register a clock event device*@dev: device to register*@freq: The clock frequency*@min_delta: The minimum clock ticks to program in oneshot mode*@max_delta: The maximum clock ticks to program in oneshot mode
tick_setup_hrtimer_broadcast