Received: by 10.192.165.148 with SMTP id m20csp2784022imm; Mon, 7 May 2018 00:43:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqAAzhHER/6Wgxrija50VOvkyDXlqG0SRkn1NeCZL4/0/4ObKvudxguSyxkzWZdPQz26U8C X-Received: by 2002:a17:902:bd46:: with SMTP id b6-v6mr37245122plx.170.1525679002151; Mon, 07 May 2018 00:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525679002; cv=none; d=google.com; s=arc-20160816; b=sC0PQqC4ok9S/VsufGnsD5JPNLjar4HEvjH/1PihaB49dvgYznhN+8z1kxfIxUYCwP 91wvrDen4VPcgNRm6GqX8ZYn2jp0mYJirzfUniPf3urhHQxLk/rtIHKUcHAFDtX2YeQa vb8ysID+NLIKoHeFibptEUwiRvMNh24IR8jENMaKsJampX7y2CRND4drE4egJLj8kTRj j+73XOSS4x+ly3iqN+A8vdty1sWPiJc66K3b7L7xqSHUWToPmhWbzSRgJRqaKbuDmLQR ZmpCyqqf39AgcsVs30bKmTyeYpQP0K22pcROPfGEtyQAmI/QIVHDvQ5g+rn5mInWvEDe dtmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:mime-version :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=0T7qpDlC972uTBw1TWUL26ZvfVJSqh2b3uUOQRgdbIw=; b=092BNWhdeWgUwDvxj/1RM4WP6HNzeVNv0GScClihPvUxm9ge0UsIZWU//9MnXwrYQt zYGtoeHUgBl1slaV5LMk70jiN3DnioRxs9qyeAucTilB/0VwajQwy34V9SVo/AhwwWRK oeVLpIjTPOOzrlJCzgTWJCaNBsXJbJCf1Jfgi8Ni5UKrNoo+V4UakRGdz4r6nSu2asdW ZsI4ScOC8LIneDbawvCKF6GbuLd0W6V2F0IhEqmM5BS5iS1IRArhnrWMwcJp17NvGi70 hKMtz7ZHtnPz/Pjtb7DU8VRaraMwXGn0YYMg61sCtuY1YpOsr2tm8OjiO2dPiJ4KJAp2 HGnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector1-synaptics-com header.b=X7BrXQCd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12-v6si17520242pgv.503.2018.05.07.00.43.07; Mon, 07 May 2018 00:43:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector1-synaptics-com header.b=X7BrXQCd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751489AbeEGHm4 (ORCPT + 99 others); Mon, 7 May 2018 03:42:56 -0400 Received: from mail-co1nam03on0075.outbound.protection.outlook.com ([104.47.40.75]:58496 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750913AbeEGHmy (ORCPT ); Mon, 7 May 2018 03:42:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector1-synaptics-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=0T7qpDlC972uTBw1TWUL26ZvfVJSqh2b3uUOQRgdbIw=; b=X7BrXQCdAXqmxWWxsnpn/JR0Hq6NkukX8llPY3gzN3Kkp4efHqN5P4bUzeZdL2BWTevxarBoDew51GZmlpzZg2JZNgemrqSBSuSlcJl4EHSR2qswOg3g56A4ArM0yOh+WpglomXUwyFeys9SurUuXSC+/qURTRqUKYAP5aStenw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jisheng.Zhang@synaptics.com; Received: from xhacker.debian (124.74.246.114) by BN6PR03MB2625.namprd03.prod.outlook.com (2603:10b6:404:59::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.735.17; Mon, 7 May 2018 07:42:50 +0000 Date: Mon, 7 May 2018 15:42:15 +0800 From: Jisheng Zhang To: Neil Armstrong Cc: Russell King , linux-arm-kernel@lists.infradead.org, linux-oxnas@groups.io, linux-kernel@vger.kernel.org Subject: [PATCH] arm: oxnas: remove non-necessary flush_cache_all() Message-ID: <20180507154215.45a9348f@xhacker.debian> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Originating-IP: [124.74.246.114] X-ClientProxiedBy: TYAPR01CA0019.jpnprd01.prod.outlook.com (2603:1096:404::31) To BN6PR03MB2625.namprd03.prod.outlook.com (2603:10b6:404:59::8) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:BN6PR03MB2625; X-Microsoft-Exchange-Diagnostics: 1;BN6PR03MB2625;3:D9OtDw5iVhZ5WvVa5h29P9sxUtW6L5+NcRHscAqnwFLQ3XOORpGk0PV+MBZpHtDXWuZEpyJy7DKsKY0SKvZfJgty0RnwyuYNSZe1L+4RJpj9zPCFrMTFTnGkpT3lDR/iRm9835GFzljqP/RSF0lMUAeFLKGD6cHb87HYZrCPewKuw0hnvkQ50aGRK/JSHMDh0fiBZLioLpmvd2yOrmrtj4jJB60YNTzr/IzhxdNOz2Rm7IbbX3LE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04GpKmUK7DjLRIgrJCuSZOcZQTng3db9s/46l1Kb7os25XuC7BTDIpfTUd5PjRy01O/iXg/syoiVFfLn/57Tt6udsa7EqKPOKE;4:gLqr2wozwFyPW84j4vMIJJjjk0d2WaNOrwIxHTnFnzxhFxa34aXq2VmWkhLgSNx9uN6cRp/LhbMLvcrbHK5IuJIFJIhyVf8vvACQWBoqMIEEJBpG3pu5uonmiiOYAgSoMxQAEUhPK/UXYQL2kwe2YQQ2W+aO+Tl8XyZtEOKx/meEq705Hoi3KCuQBQd1iYWFySEDRtiF+PHUBMm0/lX6cn9W9Vob0QBcx2fo5OBp/N9v9gUZuVI44Z6XxIKvw2ZE3gt0RsoGLpE/84qlPQMiZg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(3231254)(944501410)(52105095)(93006095)(93001095)(149027)(150025)(6041310)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:BN6PR03MB2625;BCL:0;PCL:0;RULEID:;SRVR:BN6PR03MB2625; X-Forefront-PRVS: 066517B35B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(396003)(39380400002)(39860400002)(366004)(376002)(346002)(199004)(189003)(97736004)(956004)(476003)(50466002)(1857600001)(6916009)(68736007)(6666003)(105586002)(106356001)(486006)(5660300001)(2906002)(4326008)(1076002)(6116002)(3846002)(81166006)(23726003)(81156014)(50226002)(8676002)(8936002)(53936002)(86362001)(55016002)(386003)(6506007)(47776003)(305945005)(33896004)(7696005)(59450400001)(52116002)(26005)(230700001)(16526019)(186003)(66066001)(25786009)(478600001)(316002)(9686003)(72206003)(7736002)(39210200001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR03MB2625;H:xhacker.debian;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: synaptics.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN6PR03MB2625;23:9erATuZso/Mhmv2suAEynbNUZm/lLvFiCsrRv+gTs?= =?us-ascii?Q?bp0Lyevoczoz7IxaQiGRd41C1yXMA+23ofA74NfFE9bw3YhUlActCJuKb9ev?= =?us-ascii?Q?LKhzqdEmUhYyN9duAiPwtVL2M3RiGEY+uxjDdKq1tP2equsIZu54Qfuw74Ux?= =?us-ascii?Q?CnGTBNiYiIwbYfECQKUI6NuHBzCY3Ypu83c6ePg+IHRDHRXv3LppJfdKRhBD?= =?us-ascii?Q?shT+gzQGBRnByEwic11edWvkMv6ohY8Y24/oc0i+Li+Kseg4sparO2KT/JUS?= =?us-ascii?Q?dqyY5nWuJMlkNyMGJp5z3sRsvqeHJHnPD576OK6c56V3Lr6tjm61F8xY2KUF?= =?us-ascii?Q?vAa9kd/l4dQ7IW44PJQ32RP3gb7zy0xMh83iOFK2Nshcx2qtwvjp7fTVVg20?= =?us-ascii?Q?eEV0aqrPA8fN1uerAaoKSPdrx0tTWxo6m55EY5PXlGgKmcWF4tniMJPbp7XA?= =?us-ascii?Q?YZkZuFcx3Vu/UiiWa5JFCGP1oF+zHVy2lXczkgESri5yVnQDAib8RmR6FwIx?= =?us-ascii?Q?4RlWybF9K4dubnGp8LBnk/EIBPqZROwMunBSu8fcjM/IgI4N+uwZjWU0/qeu?= =?us-ascii?Q?c8akSCB8F0Dz5PpnHCBPSU0yrly/RZHWDE8CfwsszcFgs8MUE2UcYCCKC5dK?= =?us-ascii?Q?183z7H2jGCKo5oN51E3/tJ4YcNPTa2YwGbrRpZPbTcpNX7kfHo6c4UVUBUzk?= =?us-ascii?Q?yx5inDir5aM+HL+cj4wPqTlz4nXcyv9eyXrE3jz2CKD72TDXndufEnQfLtBq?= =?us-ascii?Q?vaiVdIa4y+vrA8FpAO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++cGU1QzJzPnesYHS6VoUMzNbTxytW63/t26PilwD0DzIxjMrLojsaTepG0h06ry7A0G6zeZsu0aNw5klgX2lL0j6i2ojGSI35CuH7g0rzC3kSPO66F6o2rKDCr3IBAsWhvgOM4f6Azb7vtKFGa658c9hx2Ng8YHVTwZ8M8XCA0Xwk2AhMYDo3v+ZmYQ9uRjVGIsW6qWJttI2L4a7GgVnYGx3Slx1q94jEQ==;5:KjpmnwGg2DU7RguVfHfBELaM9f52z+Ov/35iFSdTBHCzVnDJkjxhe4wsFg7ZXmYZGnPWKEP9UIUPZngkZ8bFlJjkyFMUzvJO8CjJPcqpIxmziBFQ3NHGltZHSToFb/Il3ZMvBfhy4gHsAeLuoyV/g5huJPTr1qZJZLPTpdVQMXI=;24:tHR7A16FmLSjNp+ZRheaKQHEnijSlMVx6HiIdz2iPaDp5jFb7YY3rbwnnZFCu/o8hPU4k6cGwTlHaMnf3ru4HDszRaY1IsQuPZ0N7Vv1jME= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN6PR03MB2625;7:9EIGB9SiO+gwwIAtbvIYgcjM/fpaXPFiDLtfgdZm05Cm90vw9BJZgTKr3HDkSE1rt5Iu/w0/cRcWcQKHJB7h+uXL1LyVrll7JSJeEWp2vy3Z0cmQ/Jhmvet2A6tJHxSlC47SVgpiUwu1cF0y02jbI8BUhPLy6o6QcXSSudYDTzdur+4GuioNWbCj9ROJzVLWDi/Eq/5dNjhp2CQKIyt25G668W3Lsa0jB+p+dgeRxo6XULJZH0ybp+evM75LPjA4 X-MS-Office365-Filtering-Correlation-Id: 0b3b9591-6ad9-47f4-414c-08d5b3ee2397 X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2018 07:42:50.7442 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0b3b9591-6ad9-47f4-414c-08d5b3ee2397 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR03MB2625 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I believe the flush_cache_all() after scu_enable() is to "Ensure that the data accessed by CPU0 before the SCU was initialised is visible to the other CPUs." as commented in scu_enable(). So flush_cache_all() here is a duplication of the one in scu_enable(), remove it. Signed-off-by: Jisheng Zhang --- arch/arm/mach-oxnas/platsmp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-oxnas/platsmp.c b/arch/arm/mach-oxnas/platsmp.c index 442cc8a2f7dc..1a8e1e9fc222 100644 --- a/arch/arm/mach-oxnas/platsmp.c +++ b/arch/arm/mach-oxnas/platsmp.c @@ -85,7 +85,6 @@ static void __init ox820_smp_prepare_cpus(unsigned int max_cpus) goto unmap_scu; scu_enable(scu_base); - flush_cache_all(); unmap_scu: iounmap(scu_base); -- 2.17.0