From patchwork Thu May 26 02:03:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chao Peng X-Patchwork-Id: 9136423 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 37BBB607D3 for ; Thu, 26 May 2016 02:15:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D1F1280E5 for ; Thu, 26 May 2016 02:15:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0F2F428123; Thu, 26 May 2016 02:15:53 +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 8E775280E5 for ; Thu, 26 May 2016 02:15:52 +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 1b5knX-0005P9-2T; Thu, 26 May 2016 02:13:19 +0000 Received: from mail6.bemta6.messagelabs.com ([85.158.143.247]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b5knV-0005P3-Rp for xen-devel@lists.xen.org; Thu, 26 May 2016 02:13:17 +0000 Received: from [85.158.143.35] by server-2.bemta-6.messagelabs.com id 1B/98-24370-DBB56475; Thu, 26 May 2016 02:13:17 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrALMWRWlGSWpSXmKPExsXS1tbhqLsn2i3 c4MR9bYslHxezODB6HN39mymAMYo1My8pvyKBNWP3j9ssBU/ZKtZu2cTSwPiWtYuRk0NIoELi +cvnjCC2hACvxJFlM1ghbH+Juf87oWpqJHoObAerYRPQlZh9sIkZxBYRkJa49vkyWJxZwFviy 6MVYHFhAUOJ15+bmEBsFgFViW/bLoPFeYFq1rY8ZYaYLydx8thk1gmM3AsYGVYxqhenFpWlFu ka6SUVZaZnlOQmZuboGhqY6eWmFhcnpqfmJCYV6yXn525iBPqWAQh2MC7763SIUZKDSUmUV1z cLVyILyk/pTIjsTgjvqg0J7X4EKMMB4eSBO+rSKCcYFFqempFWmYOMMhg0hIcPEoivDFRQGne 4oLE3OLMdIjUKUZdjgU/bq9lEmLJy89LlRLnVQQpEgApyijNgxsBC/hLjLJSwryMQEcJ8RSkF uVmlqDKv2IU52BUEuZVA5nCk5lXArfpFdARTEBH+H9xBjmiJBEhJdXAuP1y3ltmQ2f+O/n/5g m+uqQ5U8+ebYsYD4vt7eMrQ/OaNvQzP3u6vqf/HofrTbeMzrxUrYsBv7T8/XsZLDfauWvq/6g tPVvTmTqtqvOFrP33ay+uOVx7ufbdj4UZ5jtrv2x6JvXkSElnrmACy1MHLqfY0lV3DNXYJj9Z vnfhskbDUA8rDsl/SizFGYmGWsxFxYkAXplU0nMCAAA= X-Env-Sender: chao.p.peng@linux.intel.com X-Msg-Ref: server-12.tower-21.messagelabs.com!1464228795!16041196!1 X-Originating-IP: [134.134.136.65] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.34; banners=-,-,- X-VirusChecked: Checked Received: (qmail 27397 invoked from network); 26 May 2016 02:13:16 -0000 Received: from mga03.intel.com (HELO mga03.intel.com) (134.134.136.65) by server-12.tower-21.messagelabs.com with SMTP; 26 May 2016 02:13:16 -0000 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP; 25 May 2016 19:13:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,366,1459839600"; d="scan'208";a="984861532" Received: from pengc-linux.bj.intel.com ([10.238.145.48]) by orsmga002.jf.intel.com with ESMTP; 25 May 2016 19:13:14 -0700 From: Chao Peng To: xen-devel@lists.xen.org Date: Thu, 26 May 2016 10:03:13 +0800 Message-Id: <1464228193-27130-1-git-send-email-chao.p.peng@linux.intel.com> X-Mailer: git-send-email 1.9.1 Cc: andrew.cooper3@citrix.com, JBeulich@suse.com, he.chen@linux.intel.com Subject: [Xen-devel] [PATCH] x86/psr: make opt_psr persistent 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: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP opt_psr is now not only used at booting time but also at runtime. More specifically, it is used to check CDP switch in psr_cpu_init() which can potentially be called in CPU hotplug case. Signed-off-by: Chao Peng Reviewed-by: Andrew Cooper --- xen/arch/x86/psr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/psr.c b/xen/arch/x86/psr.c index f796552..0b5073c 100644 --- a/xen/arch/x86/psr.c +++ b/xen/arch/x86/psr.c @@ -52,7 +52,7 @@ static unsigned long *__read_mostly cat_socket_enable; static struct psr_cat_socket_info *__read_mostly cat_socket_info; static unsigned long *__read_mostly cdp_socket_enable; -static unsigned int __initdata opt_psr; +static unsigned int opt_psr; static unsigned int __initdata opt_rmid_max = 255; static unsigned int __read_mostly opt_cos_max = 255; static uint64_t rmid_mask;