From patchwork Fri Jun 30 17:01:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 9820121 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0E9B4603F3 for ; Fri, 30 Jun 2017 17:03:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EFA8E286B4 for ; Fri, 30 Jun 2017 17:03:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E484A286B5; Fri, 30 Jun 2017 17:03:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8C5E8286BC for ; Fri, 30 Jun 2017 17:03:36 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQzIU-0002x7-VV; Fri, 30 Jun 2017 17:01:34 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQzIT-0002sr-D0 for xen-devel@lists.xenproject.org; Fri, 30 Jun 2017 17:01:33 +0000 Received: from [193.109.254.147] by server-8.bemta-6.messagelabs.com id 30/2F-03704-DE386595; Fri, 30 Jun 2017 17:01:33 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnkeJIrShJLcpLzFFi42JxWrohUvdNc1i kwc+duhbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8aKrh3sBT/4K14tuMHUwDiDt4uRk0NCwF/i yb/n7CA2m4CyxM/OXjYQW0RAT6LpwHNGEJtZIE/i7OpFrCC2sICRxIubx5m6GDk4WARUJa71B oCEeQUsJLbduMsMMVJeYlfbRbByTqD4pQ3TWEBsIQFzicVX9zBB2AoSHdOPMUH0CkqcnPmEBW KVhMTBFy+YJzDyzkKSmoUktYCRaRWjenFqUVlqka6JXlJRZnpGSW5iZo6uoYGZXm5qcXFiemp OYlKxXnJ+7iZGYOAwAMEOxu7L/ocYJTmYlER5V14LjRTiS8pPqcxILM6ILyrNSS0+xCjDwaEk wfu2KSxSSLAoNT21Ii0zBxjCMGkJDh4lEV6/WqA0b3FBYm5xZjpE6hSjLserCf+/MQmx5OXnp UqJ82oAI0JIAKQoozQPbgQsni4xykoJ8zICHSXEU5BalJtZgir/ilGcg1FJmPcwyCU8mXklcJ teAR3BBHSE8IwQkCNKEhFSUg2MK01DT+cc4F665LvNg2yJ91trLVx1hINV7vIU8r2NO7St0vf SOx2T9OYHa7rto5bIfdi/N9VP+WZ44hG34vunz7q+ylpvyCV6d84l774pGetjDv4NYQnYcXry yqyTChKFH+NnlK0L8eRfOGMq7+/+2HyR3f9q8vN9LXt3xVvxLL9kLJx0P/m8EktxRqKhFnNRc SIAjl090KICAAA= X-Env-Sender: prvs=347159f46=wei.liu2@citrix.com X-Msg-Ref: server-11.tower-27.messagelabs.com!1498842090!74469752!2 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.25; banners=-,-,- X-VirusChecked: Checked Received: (qmail 52387 invoked from network); 30 Jun 2017 17:01:32 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-11.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 30 Jun 2017 17:01:32 -0000 X-IronPort-AV: E=Sophos;i="5.40,287,1496102400"; d="scan'208";a="430033371" From: Wei Liu To: Xen-devel Date: Fri, 30 Jun 2017 18:01:17 +0100 Message-ID: <20170630170126.4148-10-wei.liu2@citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170630170126.4148-1-wei.liu2@citrix.com> References: <20170630170126.4148-1-wei.liu2@citrix.com> MIME-Version: 1.0 Cc: Andrew Cooper , Wei Liu , Jan Beulich Subject: [Xen-devel] [PATCH 09/18] x86/i8259.c: use plain bool X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Wei Liu --- 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 07465aace8..166ca1a3e1 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 240c3e8bf2..38edc053f8 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);