From patchwork Fri Jun 30 17:01:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 9820163 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 B5AF8603F3 for ; Fri, 30 Jun 2017 17:18:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B960286BE for ; Fri, 30 Jun 2017 17:18:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 903CF286C8; Fri, 30 Jun 2017 17:18:44 +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 402C2286B0 for ; Fri, 30 Jun 2017 17:18:44 +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 1dQzWs-000558-Q6; Fri, 30 Jun 2017 17:16:26 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQzWr-00054H-Kl for xen-devel@lists.xenproject.org; Fri, 30 Jun 2017 17:16:25 +0000 Received: from [85.158.137.68] by server-17.bemta-3.messagelabs.com id BC/18-01859-86786595; Fri, 30 Jun 2017 17:16:24 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprIIsWRWlGSWpSXmKPExsXitHRDpG5Ge1i kwf6/Ihbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8bfja/YC3YJV/xZf4u9gXElfxcjJ4eEgL/E 4X/rWUBsNgFliZ+dvWwgtoiAnkTTgeeMIDazQJ7E2dWLWEFsYQEDiS83PoPFWQRUJfZf2A7Wy ytgIXF10idmiJnyErvaLoLVcwLFL22YBlYjJGAusfjqHiYIW0GiY/oxJoheQYmTM5+wQOySkD j44gXzBEbeWUhSs5CkFjAyrWLUKE4tKkst0jUy1ksqykzPKMlNzMzRNTQw1stNLS5OTE/NSUw q1kvOz93ECAyeegYGxh2MfXv9DjFKcjApifKuvBYaKcSXlJ9SmZFYnBFfVJqTWnyIUYaDQ0mC d0lbWKSQYFFqempFWmYOMIxh0hIcPEoivOwgad7igsTc4sx0iNQpRl2OVxP+f2MSYsnLz0uVE ueNASkSACnKKM2DGwGLqUuMslLCvIwMDAxCPAWpRbmZJajyrxjFORiVhHn3gkzhycwrgdv0Cu gIJqAjhGeEgBxRkoiQkmpgdI42mnZdjjFj4eMLDLPCVQ88E0++mM6t+/B/9K/bVkcVLn2TZju zckvdt1bTww8FnnrnhZ817v/S0GEveP1b6yujBVFPtsnVmMyd27R6gnWR/Yp/Jx1NZK1WhVae nx930fX5XJejk/48jtNqrXj38armrw+2ZZWXv1wtvsv7u5u3+dJNaY2b65VYijMSDbWYi4oTA aL3YRCkAgAA X-Env-Sender: prvs=347159f46=wei.liu2@citrix.com X-Msg-Ref: server-7.tower-31.messagelabs.com!1498842981!95849835!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.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 48964 invoked from network); 30 Jun 2017 17:16:24 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-7.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 30 Jun 2017 17:16:24 -0000 X-IronPort-AV: E=Sophos;i="5.40,287,1496102400"; d="scan'208";a="430035732" From: Wei Liu To: Xen-devel Date: Fri, 30 Jun 2017 18:01:26 +0100 Message-ID: <20170630170126.4148-19-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 18/18] x86/psr.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/psr.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/xen/arch/x86/psr.c b/xen/arch/x86/psr.c index 0b5073c41f..381f9a046d 100644 --- a/xen/arch/x86/psr.c +++ b/xen/arch/x86/psr.c @@ -270,7 +270,7 @@ static struct psr_cat_socket_info *get_cat_socket_info(unsigned int socket) return cat_socket_info + socket; } -static inline bool_t cdp_is_enabled(unsigned int socket) +static inline bool cdp_is_enabled(unsigned int socket) { return cdp_socket_enable && test_bit(socket, cdp_socket_enable); } @@ -297,7 +297,7 @@ int psr_get_l3_cbm(struct domain *d, unsigned int socket, uint64_t *cbm, enum cbm_type type) { struct psr_cat_socket_info *info = get_cat_socket_info(socket); - bool_t cdp_enabled = cdp_is_enabled(socket); + bool cdp_enabled = cdp_is_enabled(socket); if ( IS_ERR(info) ) return PTR_ERR(info); @@ -331,7 +331,7 @@ int psr_get_l3_cbm(struct domain *d, unsigned int socket, return 0; } -static bool_t psr_check_cbm(unsigned int cbm_len, uint64_t cbm) +static bool psr_check_cbm(unsigned int cbm_len, uint64_t cbm) { unsigned int first_bit, zero_bit; @@ -357,7 +357,7 @@ static bool_t psr_check_cbm(unsigned int cbm_len, uint64_t cbm) struct cos_cbm_info { unsigned int cos; - bool_t cdp; + bool cdp; uint64_t cbm_code; uint64_t cbm_data; }; @@ -376,7 +376,7 @@ static void do_write_l3_cbm(void *data) } static int write_l3_cbm(unsigned int socket, unsigned int cos, - uint64_t cbm_code, uint64_t cbm_data, bool_t cdp) + uint64_t cbm_code, uint64_t cbm_data, bool cdp) { struct cos_cbm_info info = { @@ -401,7 +401,7 @@ static int write_l3_cbm(unsigned int socket, unsigned int cos, } static int find_cos(struct psr_cat_cbm *map, unsigned int cos_max, - uint64_t cbm_code, uint64_t cbm_data, bool_t cdp_enabled) + uint64_t cbm_code, uint64_t cbm_data, bool cdp_enabled) { unsigned int cos; @@ -440,7 +440,7 @@ int psr_set_l3_cbm(struct domain *d, unsigned int socket, unsigned int old_cos, cos_max; int cos, ret; uint64_t cbm_data, cbm_code; - bool_t cdp_enabled = cdp_is_enabled(socket); + bool cdp_enabled = cdp_is_enabled(socket); struct psr_cat_cbm *map; struct psr_cat_socket_info *info = get_cat_socket_info(socket);