Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lockevents_register_device - register a clock event device*@dev: device to register

Proto:void clockevents_register_device(struct clock_event_device *dev)

Type:void

Parameter:

TypeParameterName
struct clock_event_device *dev
449  clockevent_set_state(dev, CLOCK_EVT_STATE_DETACHED)
451  If Not cpumask Then
452  WARN_ON(num_possible_cpus() > 1)
453  cpumask = cpumask_of - the cpumask containing just a given cpu*@cpu: the cpu (<= nr_cpu_ids)(smp_processor_id())
456  If cpumask == cpu_all_mask Then
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  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
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)
Caller
NameDescribe
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