]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
x86: Replace setup_irq() by request_irq()
authorafzal mohammed <afzal.mohd.ma@gmail.com>
Mon, 24 Feb 2020 00:52:26 +0000 (06:22 +0530)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 21 Mar 2020 14:15:47 +0000 (15:15 +0100)
commit4dd2a1b92b91b5f2acf853ee1dc0df135054698f
tree29228271151eae58b3fd9fcda4829d995ed1c1f9
parente2bdafc1070f5db0bc1bc40116955f54188771cb
x86: Replace setup_irq() by request_irq()

request_irq() is preferred over setup_irq(). The early boot setup_irq()
invocations happen either via 'init_IRQ()' or 'time_init()', while
memory allocators are ready by 'mm_init()'.

setup_irq() was required in old kernels when allocators were not ready by
the time early interrupts were initialized.

Hence replace setup_irq() by request_irq().

[ tglx: Use a local variable and get rid of the line break. Tweak the
   comment a bit ]

Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/17f85021f6877650a5b09e0212d88323e6a30fd0.1582471508.git.afzal.mohd.ma@gmail.com
arch/x86/kernel/irqinit.c
arch/x86/kernel/time.c