[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86/i8259.c: use plain bool
commit 9954f1f72d81f5c145ef72d30ae155c9f3e45109 Author: Wei Liu <wei.liu2@xxxxxxxxxx> AuthorDate: Fri Jun 30 17:17:44 2017 +0100 Commit: Wei Liu <wei.liu2@xxxxxxxxxx> CommitDate: Tue Jul 4 14:54:42 2017 +0100 x86/i8259.c: use plain bool Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- xen/arch/x86/i8259.c | 10 +++++----- xen/include/asm-x86/irq.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/xen/arch/x86/i8259.c b/xen/arch/x86/i8259.c index 07465aa..166ca1a 100644 --- a/xen/arch/x86/i8259.c +++ b/xen/arch/x86/i8259.c @@ -32,9 +32,9 @@ static DEFINE_SPINLOCK(i8259A_lock); -static bool_t _mask_and_ack_8259A_irq(unsigned int irq); +static bool _mask_and_ack_8259A_irq(unsigned int irq); -bool_t bogus_8259A_irq(unsigned int irq) +bool bogus_8259A_irq(unsigned int irq) { return _mask_and_ack_8259A_irq(irq); } @@ -193,11 +193,11 @@ static inline int i8259A_irq_real(unsigned int irq) * to the two 8259s is important! Return a boolean * indicating whether the irq was genuine or spurious. */ -static bool_t _mask_and_ack_8259A_irq(unsigned int irq) +static bool _mask_and_ack_8259A_irq(unsigned int irq) { unsigned int irqmask = 1 << irq; unsigned long flags; - bool_t is_real_irq = 1; /* Assume real unless spurious */ + bool is_real_irq = true; /* Assume real unless spurious */ spin_lock_irqsave(&i8259A_lock, flags); @@ -218,7 +218,7 @@ static bool_t _mask_and_ack_8259A_irq(unsigned int irq) */ if ((cached_irq_mask & irqmask) && !i8259A_irq_real(irq)) { static int spurious_irq_mask; - is_real_irq = 0; + is_real_irq = false; /* Report spurious IRQ, once per IRQ line. */ if (!(spurious_irq_mask & irqmask)) { printk("spurious 8259A interrupt: IRQ%d.\n", irq); diff --git a/xen/include/asm-x86/irq.h b/xen/include/asm-x86/irq.h index 240c3e8..38edc05 100644 --- a/xen/include/asm-x86/irq.h +++ b/xen/include/asm-x86/irq.h @@ -108,7 +108,7 @@ void mask_8259A(void); void unmask_8259A(void); void init_8259A(int aeoi); void make_8259A_irq(unsigned int irq); -bool_t bogus_8259A_irq(unsigned int irq); +bool bogus_8259A_irq(unsigned int irq); int i8259A_suspend(void); int i8259A_resume(void); -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |