]> git.openfabrics.org - ~shefty/rdma-dev.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)
committerIngo Molnar <mingo@kernel.org>
Mon, 7 May 2012 14:25:28 +0000 (16:25 +0200)
commit42fa4250436304d4650fa271f37671f6cee24e08
tree72f1dfa918bef82a519af8d1c0a57a9d3b30735b
parent22042c086c1b6814b9f3ecf2720f6280bede9c47
x86: Conditionally update time when ack-ing pending irqs

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>
arch/x86/kernel/apic/apic.c