]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/linux/irq.h
genirq/migration: Avoid out of line call if pending is not set
authorThomas Gleixner <tglx@linutronix.de>
Wed, 6 Jun 2018 12:46:59 +0000 (14:46 +0200)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Fri, 9 Nov 2018 19:00:39 +0000 (17:00 -0200)
commit7d2e1b76a733c24fd3f0a3ef23c7209a1869e11b
tree860a8b426121b5d57121adbbb1f2e216fa342834
parent951f610b00affbe2f43ac1b9b90d187e7dc4398d
genirq/migration: Avoid out of line call if pending is not set

BugLink: http://bugs.launchpad.net/bugs/1800537
commit d340ebd696f921d3ad01b8c0c29dd38f2ad2bf3e upstream.

The upcoming fix for the -EBUSY return from affinity settings requires to
use the irq_move_irq() functionality even on irq remapped interrupts. To
avoid the out of line call, move the check for the pending bit into an
inline helper.

Preparatory change for the real fix. No functional change.

Fixes: dccfe3147b42 ("x86/vector: Simplify vector move cleanup")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Joerg Roedel <jroedel@suse.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Song Liu <liu.song.a23@gmail.com>
Cc: Dmitry Safonov <0x7f454c46@gmail.com>
Cc: stable@vger.kernel.org
Cc: Mike Travis <mike.travis@hpe.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Tariq Toukan <tariqt@mellanox.com>
Cc: Dou Liyang <douly.fnst@cn.fujitsu.com>
Link: https://lkml.kernel.org/r/20180604162224.471925894@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
include/linux/irq.h
kernel/irq/migration.c