]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: BookE: fix sleep with interrupts disabled
authorScott Wood <scottwood@freescale.com>
Thu, 30 Sep 2010 19:28:50 +0000 (14:28 -0500)
committerMarcelo Tosatti <mtosatti@redhat.com>
Fri, 5 Nov 2010 16:42:28 +0000 (14:42 -0200)
commit3e492f8364f2b72b51adac9658235e3dc0174dba
tree6b6bbf59969da08b63f5486ebd4f2741a8a07382
parent7e980c368597f5350d2371cf315cc447d8ec96ad
KVM: PPC: BookE: fix sleep with interrupts disabled

It is not legal to call mutex_lock() with interrupts disabled.
This will assert with debug checks enabled.

If there's a real need to disable interrupts here, it could be done
after the mutex is acquired -- but I don't see why it's needed at all.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Reviewed-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/timing.c