diff options
author | Alexander Graf <agraf@suse.de> | 2010-08-30 14:03:24 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 10:52:20 +0200 |
commit | c5335f17651de5075313524ccc3881527268966f (patch) | |
tree | d81c88bb7ab6af6940d116d0fc31189f2576e21e /arch/powerpc/kvm/booke.h | |
parent | 7b4203e8cb5c5d9bc49da62b7a6fa4ba876a1b3f (diff) | |
download | blackbird-op-linux-c5335f17651de5075313524ccc3881527268966f.tar.gz blackbird-op-linux-c5335f17651de5075313524ccc3881527268966f.zip |
KVM: PPC: Implement level interrupts for BookE
BookE also wants to support level based interrupts, so let's implement
all the necessary logic there. We need to trick a bit here because the
irqprios are 1:1 assigned to architecture defined values. But since there
is some space left there, we can just pick a random one and move it later
on - it's internal anyways.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kvm/booke.h')
-rw-r--r-- | arch/powerpc/kvm/booke.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/booke.h b/arch/powerpc/kvm/booke.h index 88258acc98fa..492bb7030358 100644 --- a/arch/powerpc/kvm/booke.h +++ b/arch/powerpc/kvm/booke.h @@ -46,7 +46,9 @@ #define BOOKE_IRQPRIO_FIT 17 #define BOOKE_IRQPRIO_DECREMENTER 18 #define BOOKE_IRQPRIO_PERFORMANCE_MONITOR 19 -#define BOOKE_IRQPRIO_MAX 19 +/* Internal pseudo-irqprio for level triggered externals */ +#define BOOKE_IRQPRIO_EXTERNAL_LEVEL 20 +#define BOOKE_IRQPRIO_MAX 20 extern unsigned long kvmppc_booke_handlers; |