Wei, Gang
2008-Oct-23 10:30 UTC
[Xen-devel] [PATCH] CPUIDLE: always get lock while irq disabled
CPUIDLE: always get lock while irq disabled Otherwise, may encounter deadlock. Signed-off-by: Wei Gang <gang.wei@intel.com> diff -r d2f7243fc571 xen/arch/x86/hpet.c --- a/xen/arch/x86/hpet.c Tue Oct 21 18:00:21 2008 +0100 +++ b/xen/arch/x86/hpet.c Wed Oct 22 19:05:42 2008 +0800 @@ -146,7 +146,7 @@ s_time_t now, next_event; int cpu; - spin_lock(&ch->lock); + spin_lock_irq(&ch->lock); again: ch->next_event = STIME_MAX; @@ -171,7 +171,7 @@ if ( reprogram_hpet_evt_channel(ch, next_event, now, 0) ) goto again; } - spin_unlock(&ch->lock); + spin_unlock_irq(&ch->lock); } void hpet_broadcast_init(void) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel