From patchwork Thu May 19 09:22:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 9125781 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0DA34BF29F for ; Thu, 19 May 2016 09:24:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3B38120172 for ; Thu, 19 May 2016 09:24:43 +0000 (UTC) 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.kernel.org (Postfix) with ESMTPS id 5AD0A2009C for ; Thu, 19 May 2016 09:24:42 +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 1b3KA4-0002Z2-Dc; Thu, 19 May 2016 09:22:32 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b3KA2-0002Yo-Jg for xen-devel@lists.xen.org; Thu, 19 May 2016 09:22:30 +0000 Received: from [193.109.254.147] by server-15.bemta-14.messagelabs.com id 47/4A-02914-5D58D375; Thu, 19 May 2016 09:22:29 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMIsWRWlGSWpSXmKPExsVyMfSOk+7VVtt wg+2/eSyWfFzM4sDocXT3b6YAxijWzLyk/IoE1oxVF7uZC1rZK15/vs3awPiFtYuRk0NIYAKj xNMPSl2MXBwsApdYJKb1nmEBcSQE3rFIvDvcyQRSJSEQI9GwpRvKrpR43PQfqltFYu6mHkaQB iGBHiaJhbu62UASbAJqEkfez2QEsUUEDCV2n14E1sAsYCxxcdd2FhBbWMBD4sbbq8xdjBxAq1 UlLr0vAgnzCrhKbL67jA1il5zElPvtTBMY+RYwMqxi1ChOLSpLLdI1NNdLKspMzyjJTczM0TU 0NNHLTS0uTkxPzUlMKtZLzs/dxAgMlHoGBsYdjD9Pex5ilORgUhLl/dNgGy7El5SfUpmRWJwR X1Sak1p8iFGGg0NJgndTC1BOsCg1PbUiLTMHGLIwaQkOHiUR3rcgad7igsTc4sx0iNQpRkuOL b+vrWXiWPDjNpDcNvXeWiYhlrz8vFQpcd4ekAYBkIaM0jy4cbC4usQoKyXMy8jAwCDEU5BalJ tZgir/ilGcg1FJmJcPGKVCPJl5JXBbXwEdxAR00C0xG5CDShIRUlINjIECyXX/99R8S10dE/y I/YwD05ns6N/vD0fncM4U3Lzfelvy1+p/+0+KnxR4XXY+if3oIwulKV71VRIbhW80ZPzT9RVa dzKncd7Bk6wrHd/W1az6ZqSxMd7ZJuvSyvBb5nxSKVu9ffe6dHyZ7XT8hZpNtsOWI3s2fo0Ia /jv4M17vaZm/6JgDSWW4oxEQy3mouJEAIXx2/amAgAA X-Env-Sender: van.freenix@gmail.com X-Msg-Ref: server-6.tower-27.messagelabs.com!1463649747!42576687!1 X-Originating-IP: [209.85.220.66] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.34; banners=-,-,- X-VirusChecked: Checked Received: (qmail 39905 invoked from network); 19 May 2016 09:22:28 -0000 Received: from mail-pa0-f66.google.com (HELO mail-pa0-f66.google.com) (209.85.220.66) by server-6.tower-27.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 19 May 2016 09:22:28 -0000 Received: by mail-pa0-f66.google.com with SMTP id yl2so7275195pac.1 for ; Thu, 19 May 2016 02:22:28 -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=zduAaerv4ouKKWCHlTVf6CUt1bvAsfgP+gg4JCXKniI=; b=pHDQwhCroPC4NgeI+bfd1qbZ2C5qwgYgcTAhxqkX6m28T58gZkUiXc6Fb7Dssy2H6p 0+5DvTQwNqxkqMhRG6/rPrtVwIvsrODH0InrwLw25zVai74qCfYnCmNMIDMfgeQGL3kO CmsDH11CHksadDo4FssqCYcFZhgz8QtgzPC87AV1w3jSfPGZCke4eGfOBAzYh0j2svIe 5QPy6OfdvS2O7N0Tu2Xi6qPEtxqd44MLo3jf+I/AsYf/tCm0aHZBsR6dQFskb+m+82+9 Pzc/yTnzVjnAQkok0Z8ZDUAqHGFF9TE7h8iyxTnuIpO7cnbPCvDeZouf3YTSVKHcJfDs VLGQ== 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=zduAaerv4ouKKWCHlTVf6CUt1bvAsfgP+gg4JCXKniI=; b=leibsMFP56ylyiiqi1CMsW/QJBOVlLfm0lrVVS4EEXLQMIYo3CEW4gsnbccV6mMD7N jPeF8FkckDd7hTYHbQRgq0HFjN5gGzCi9m+NvJhsbECLpoJ0ohwiuOBaS/JTOoxFnUjI a5OZhrFtOH4RrX+T5hUn4LIo/74Ip9DaCY5c7V5TsXvyaw0m13nzm2Xn2dOG10QaN6pD 7fIgV0ifEvsyEgnD9X/OwPNOqrhs/vcDGQlMVcDvu+KHcEPjofEFzcekXUillyWTPGU2 bA5jLOQLHPp9pTzum0ZfLbpPGbDVvBj/5IKPSnIfzNP68vVPO9uh5CdmGpL4L6P2xXqZ hqpA== X-Gm-Message-State: AOPr4FV48teW5CgXmlni5dTf2S/H3QcHYBijPsZKZqqAbJhev17vzNGs8vI3hIA7aEAEfQ== X-Received: by 10.66.229.33 with SMTP id sn1mr18013011pac.49.1463649747245; Thu, 19 May 2016 02:22:27 -0700 (PDT) Received: from linux-7smt.suse (gate-zmy3.freescale.com. [192.88.167.1]) by smtp.gmail.com with ESMTPSA id f125sm18176553pfa.26.2016.05.19.02.22.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 May 2016 02:22:26 -0700 (PDT) From: Peng Fan To: julien.grall@arm.com, sstabellini@kernel.org Date: Thu, 19 May 2016 17:22:07 +0800 Message-Id: <1463649727-18510-1-git-send-email-van.freenix@gmail.com> X-Mailer: git-send-email 2.6.2 Cc: van.freenix@gmail.com, xen-devel@lists.xen.org Subject: [Xen-devel] [PATCH] xen/arm: smpboot: drop unneeded code in start_secondary 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-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP CPU0 boots up secondary CPUs one by one. Before booting one secondary CPU, CPU0 will assign hwid to smp_up_cpu and flush cache. After the secondary CPU boots up, CPU0 will assign MPIDR_INVALID to smp_up_cpu and flush cache. There is no need for secondary CPUs to assign MPIDR_INVALID to smp_up_cpu. So, drop it. Signed-off-by: Peng Fan Cc: Julien Grall Cc: Stefano Stabellini Reviewed-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 c5109bf..6b3c157 100644 --- a/xen/arch/arm/smpboot.c +++ b/xen/arch/arm/smpboot.c @@ -309,7 +309,6 @@ void start_secondary(unsigned long boot_phys_offset, smp_wmb(); /* Now report this CPU is up */ - smp_up_cpu = MPIDR_INVALID; cpumask_set_cpu(cpuid, &cpu_online_map); smp_wmb();