Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\apic\apic.c Create Date:2022-07-28 08:26:45
Last Modify:2020-03-16 21:21:31 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Setup the local APIC timer for this CPU. Copy the initialized values* of the boot CPU and register the clock event in the framework.

Proto:static void setup_APIC_timer(void)

Type:void

Parameter:Nothing

648  levt = this_cpu_ptr( & lapic_events)
650  If this_cpu_has(Always Running APIC Timer ) Then
651  features &= ~CLOCK_EVT_FEAT_C3STOP
653  rating = 150
656  memcpy(levt, & The local apic timer can be used for any function which is CPU local., size of levt )
657  cpumask = cpumask_of - the cpumask containing just a given cpu*@cpu: the cpu (<= nr_cpu_ids)(smp_processor_id())
659  If this_cpu_has(TSC deadline timer ) Then
660  name = "lapic-deadline"
661  features &= ~(CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_DUMMY)
663  set_next_event = lapic_next_deadline
664  lockevents_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
667  Else lockevents_register_device - register a clock event device*@dev: device to register
Caller
NameDescribe
x86_init_noopSetup the boot APIC* Calibrate and verify the result.
x86_init_noop