]> git.baikalelectronics.ru Git - kernel.git/commit
x86/apic: Move pending interrupt check code into it's own function
authorDou Liyang <douly.fnst@cn.fujitsu.com>
Thu, 1 Mar 2018 05:59:28 +0000 (13:59 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 1 Mar 2018 09:12:20 +0000 (10:12 +0100)
commit8915d200df85b43c6a69e8f860a2d9c4c762fd56
tree46d8e47d2648f49aef3302ca0a2fc2e134159af9
parent314fe2429f766125637f2fbfe6dbe5ac8834121b
x86/apic: Move pending interrupt check code into it's own function

The pending interrupt check code is mixed with the local APIC setup code,
that looks messy.

Extract the related code, move it into a new function named
apic_pending_intr_clear().

Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: bhe@redhat.com
Cc: ebiederm@xmission.com
Link: https://lkml.kernel.org/r/20180301055930.2396-2-douly.fnst@cn.fujitsu.com
arch/x86/kernel/apic/apic.c