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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Nov 2019 18:18:45 +0000 (19:18 +0100)
commitfe241fe90ac12bc7fa52d9bded4b253c4ee4a27d
tree2b34d460ad27f57b888dbda4a9b8d2028ca9a0ef
parentf69f2d6119535c1f91ef37d0704d65fafee56ae0
x86/apic: Move pending interrupt check code into it's own function

[ Upstream commit 9b217f33017715903d0956dfc58f82d2a2d00e63 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kernel/apic/apic.c