xen: allow interrupts to be enabled while doing a blocking spin
authorJeremy Fitzhardinge <jeremy@goop.org>
Thu, 21 Aug 2008 00:02:20 +0000 (17:02 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 21 Aug 2008 11:52:58 +0000 (13:52 +0200)
commit1e696f638b523958ee3d95e655becdb4c4b6fcde
treefc633cd3d2d92c846463d2c7f476647de1dbc27a
parent994025caba3e6beade9bde84dd1b70d9d250f27b
xen: allow interrupts to be enabled while doing a blocking spin

If spin_lock is called in an interrupts-enabled context, we can safely
enable interrupts while spinning.  We don't bother for the actual spin
loop, but if we timeout and fall back to blocking, it's definitely
worthwhile enabling interrupts if possible.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Acked-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/xen/spinlock.c