From patchwork Fri Sep 2 09:41:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 9310635 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 802CF60756 for ; Fri, 2 Sep 2016 09:44:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 70B852972B for ; Fri, 2 Sep 2016 09:44:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6535529731; Fri, 2 Sep 2016 09:44:27 +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=-3.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 D32132972B for ; Fri, 2 Sep 2016 09:44:26 +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 1bfkz9-0004un-U1; Fri, 02 Sep 2016 09:42:07 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bfkz8-0004uh-2R for xen-devel@lists.xen.org; Fri, 02 Sep 2016 09:42:06 +0000 Received: from [85.158.139.211] by server-12.bemta-5.messagelabs.com id EE/85-01026-D6949C75; Fri, 02 Sep 2016 09:42:05 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHIsWRWlGSWpSXmKPExsVyMfSOi26O58l wg28/TS2WfFzM4sDocXT3b6YAxijWzLyk/IoE1oytB38zFnxirZj3aBprA2MbaxcjF4eQQD+j xP0zn9hBHBaBSywSv+fsZQRxJATesUgcOfyKrYuRA8iJkWifVNzFyAlkVkvcmfiaDcQWElCRm LuphxFi0mwmiZXrJrCCJNgE1CSOvJ/JCNFrLPH8Zg5IWETAUGL36UVgJcwClhLnN3xkBykRFv CTOHoHbCSLgKrE4okzGEFsXgEHiZMzP7FCrJWTmHK/nWkCI/8CRoZVjBrFqUVlqUW6RqZ6SUW Z6RkluYmZObqGBqZ6uanFxYnpqTmJScV6yfm5mxiB4VPPwMC4g3FXu98hRkkOJiVR3tf2J8OF +JLyUyozEosz4otKc1KLDzHKcHAoSfBedAfKCRalpqdWpGXmAAMZJi3BwaMkwqvuAZTmLS5Iz C3OTIdInWK05Njy+9paJo4FP24DyW1T761lEmLJy89LlRLnXQ4yTwCkIaM0D24cLNouMcpKCf MyMjAwCPEUpBblZpagyr9iFOdgVBLm9QZZy5OZVwK39RXQQUxAB5VcOw5yUEkiQkqqgbEy/es P62XpJfPdbGeZ7rGpf7KlWu3UO1mZFh31L2fro/Jd5vwp3qOy/F2Gk3nmt5M2AVaut95NcPz6 Iy77LW/32RdsdXpF35V+tUdebNDoC17VMtmQ62NpTNaVBptUwfypoabZdS2K3j/nnttRXSYRr hcQ9H5rUaqXu2Pc1y+HjvH+EhGXU2Ipzkg01GIuKk4EAKZERG6xAgAA X-Env-Sender: van.freenix@gmail.com X-Msg-Ref: server-4.tower-206.messagelabs.com!1472809323!57558504!1 X-Originating-IP: [209.85.220.68] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.84; banners=-,-,- X-VirusChecked: Checked Received: (qmail 6549 invoked from network); 2 Sep 2016 09:42:04 -0000 Received: from mail-pa0-f68.google.com (HELO mail-pa0-f68.google.com) (209.85.220.68) by server-4.tower-206.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 2 Sep 2016 09:42:04 -0000 Received: by mail-pa0-f68.google.com with SMTP id hm5so846872pac.1 for ; Fri, 02 Sep 2016 02:42:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=YiviZFIkgFarEnkx50xiNds3lVGMOCBUW4u33R1KGoM=; b=hmkoOrs8/HPgJMQLeN3bp+tILkcwDyc4AM20pKsQpgxZ3/T6kMTF9l1vD+cqEAw20Z J9EFi+wMCBib2/8NkVp6G2DiNmp1/lNh2PcrxMTe1ZVY2shEsoLyoN6SGZCeT8N2AugO D+ODFsfrj785M8K8scXq7nGXN/rFMf9ENe34VYBwbkGQxq+YIdKaT6W9g7ouo0txV4ry +klAvLyLUcd72EQpqbf5c0ekIWwkmw1kaazalnQfotr0i6qDLpKfCLHGKnPAvFejIoXZ h17kA1DVbJSdVB9TDmITR3GrI4/N88i213+MD0Ac70hWW64GeJzj2wE5gab6w2WOKG5L b8CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=YiviZFIkgFarEnkx50xiNds3lVGMOCBUW4u33R1KGoM=; b=D9IlderbWV0WNmfDoFd8rhrTSHmyMiCherbjoidEo6S0aWGEsTaJTXem9mQpbj+fq5 nYmn+YkB2mItNsiW295NRzAiomlLtCIeZ/jV6fsxeF36GczqrryjQocc5hhOYWX9U98S 9/rvzVom3xn1ENJbuIFbtubdm/Lqxj+Ym3ffpy0qVRLhhyujndU/y1/0hlgZpQ+sUYS1 f1U0C7pZpDqvf/a5QjApOg5yPh11vL5EBNxv/SyJkUakpNOjIS+PrS6qV9u2ov51I+kL H2qSZEAqEYbrZBsoH831czKO/BlQEln5B9TNKn7ZzfI/S4k3I6IixEbg8mEBvCUE37Jd dERQ== X-Gm-Message-State: AE9vXwMMzG7gG6wU0yW6NKAMEh6qoBJv2oDSkucvnpwen9ZHswdm+qarXy/v2uMfBVbgdQ== X-Received: by 10.66.189.199 with SMTP id gk7mr35002536pac.158.1472809323162; Fri, 02 Sep 2016 02:42:03 -0700 (PDT) Received: from linux-7smt.suse.ap.freescale.net (gate-zmy3.freescale.com. [192.88.167.1]) by smtp.gmail.com with ESMTPSA id p4sm13363365pfp.60.2016.09.02.02.42.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 Sep 2016 02:42:02 -0700 (PDT) From: Peng Fan X-Google-Original-From: Peng Fan To: julien.grall@arm.com, sstabellini@kernel.org Date: Fri, 2 Sep 2016 17:41:41 +0800 Message-Id: <1472809301-31011-1-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.6.2 Cc: Peng Fan , xen-devel@lists.xen.org Subject: [Xen-devel] [PATCH] xen/arm: smpboot: drop unneeded code when identifying cpuinfo 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 The current_cpu_data indicates the cpuinfo for the current cpu. There is no need to fill the current_cpu_data from boot_cpu_data, because the following call to identify_cpu will override it. Signed-off-by: Peng Fan Cc: Julien Grall Cc: Stefano Stabellini Acked-by: Julien Grall --- xen/arch/arm/smpboot.c | 1 - 1 file changed, 1 deletion(-) diff --git a/xen/arch/arm/smpboot.c b/xen/arch/arm/smpboot.c index d56b91d..90ad1d0 100644 --- a/xen/arch/arm/smpboot.c +++ b/xen/arch/arm/smpboot.c @@ -288,7 +288,6 @@ void start_secondary(unsigned long boot_phys_offset, set_processor_id(cpuid); - current_cpu_data = boot_cpu_data; identify_cpu(¤t_cpu_data); init_traps();