OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
073d461
)
KVM: i8259: simplify pic_irq_request() calling sequence
author
Avi Kivity
<avi@redhat.com>
Mon, 3 May 2010 14:38:06 +0000
(17:38 +0300)
committer
Avi Kivity
<avi@redhat.com>
Sun, 1 Aug 2010 07:47:04 +0000
(10:47 +0300)
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/i8259.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/i8259.c
b/arch/x86/kvm/i8259.c
index
caf6e1b
..
bc10f0b
100644
(file)
--- a/
arch/x86/kvm/i8259.c
+++ b/
arch/x86/kvm/i8259.c
@@
-176,10
+176,7
@@
static void pic_update_irq(struct kvm_pic *s)
pic_set_irq1(&s->pics[0], 2, 0);
}
irq = pic_get_irq(&s->pics[0]);
- if (irq >= 0)
- pic_irq_request(s->kvm, 1);
- else
- pic_irq_request(s->kvm, 0);
+ pic_irq_request(s->kvm, irq >= 0);
}
void kvm_pic_update_irq(struct kvm_pic *s)