Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mp_alloc_timer_irq

Proto:static int mp_alloc_timer_irq(int ioapic, int pin)

Type:int

Parameter:

TypeParameterName
intioapic
intpin
2101  irq = -1
2102  domain = mp_ioapic_irqdomain(ioapic)
2104  If domain Then
2107  ioapic_set_alloc_attr( & info, NUMA_NO_NODE, 0, 0)
2108  ioapic_id = mpc_ioapic_id(ioapic)
2109  ioapic_pin = pin
2110  mutex_lock( & ioapic_mutex)
2111  irq = Need special handling for ISA IRQs because there may be multiple IOAPIC pins* sharing the same ISA IRQ number and irqdomain only supports 1:1 mapping* between IOAPIC pin and IRQ number. A typical IOAPIC has 24 pins, pin 0-15 are
2112  mutex_unlock( & ioapic_mutex)
2115  Return irq
Caller
NameDescribe
check_timerThis code may look a bit paranoid, but it's supposed to cooperate with* a wide range of boards and BIOS bugs. Fortunately only the timer IRQ* is so screwy. Thanks to Brian Perkins for testing/hacking this beast* fanatically on his truly buggy board.