KVM: PPC: Book3E HV: call RECONCILE_IRQ_STATE to sync the software state
authorTiejun Chen <tiejun.chen@windriver.com>
Wed, 23 Oct 2013 01:26:48 +0000 (09:26 +0800)
committerAlexander Graf <agraf@suse.de>
Thu, 9 Jan 2014 09:15:10 +0000 (10:15 +0100)
commit9bd880a2c882d2181b1eaba0aed422cced8f0e8a
tree04d627755115ed0d56e2538f0c7436dd0fff60c3
parent08c9a188d0d0fc0f0c5e17d89a06bb59c493110f
KVM: PPC: Book3E HV: call RECONCILE_IRQ_STATE to sync the software state

Rather than calling hard_irq_disable() when we're back in C code
we can just call RECONCILE_IRQ_STATE to soft disable IRQs while
we're already in hard disabled state.

This should be functionally equivalent to the code before, but
cleaner and faster.

Signed-off-by: Tiejun Chen <tiejun.chen@windriver.com>
[agraf: fix comment, commit message]
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/booke.c
arch/powerpc/kvm/bookehv_interrupts.S