KVM: powerpc: Move vector to irqprio resolving to separate function
authorAlexander Graf <agraf@suse.de>
Mon, 21 Dec 2009 19:21:23 +0000 (20:21 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:35:41 +0000 (12:35 -0300)
commit583617b7866cfcc0b3830a4b7ab20f218d180f67
tree9be91415974c7e1aa8e1486b5e20e0b734daddaa
parent980da6ce573b7c40886406674ff8f022a975e65e
KVM: powerpc: Move vector to irqprio resolving to separate function

We're using a switch table to find the irqprio that belongs to a specific
interrupt vector. This table is part of the interrupt inject logic.

Since we'll add a new function to stop interrupts, let's move this table
out of the injection logic into a separate function.

Signed-off-by: Alexander Graf <agraf@suse.de>
Acked-by: Acked-by: Hollis Blanchard <hollis@penguinppc.org>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kvm/book3s.c