]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86: Conditionally update time when ack-ing pending irqs
authorShai Fultheim <shai@scalemp.com>
Thu, 19 Apr 2012 22:12:32 +0000 (01:12 +0300)
committerWilly Tarreau <w@1wt.eu>
Sun, 24 May 2015 08:10:38 +0000 (10:10 +0200)
commitd75221306dc828395739fee7efae402a5cc45df3
tree4e61c14dbc5798512f3e2a0fa3e5dfaac11c4709
parentc069a4f21b6542f071a803f1ab9a7bd897ec271c
x86: Conditionally update time when ack-ing pending irqs

commit 42fa4250436304d4650fa271f37671f6cee24e08 upstream.

On virtual environments, apic_read could take a long time. As a
result, under certain conditions the ack pending loop may exit
without any queued irqs left, but after more than one second. A
warning will be printed needlessly in this case.

If the loop is about to exit regardless of max_loops, don't
update it.

Signed-off-by: Shai Fultheim <shai@scalemp.com>
[ rebased and reworded the commit message]
Signed-off-by: Ido Yariv <ido@wizery.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1334873552-31346-1-git-send-email-ido@wizery.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
(cherry picked from commit c9f1417be9acae3a9867f8bdab2b7924d76cf6ac)

Signed-off-by: Willy Tarreau <w@1wt.eu>
arch/x86/kernel/apic/apic.c