Received: by 10.192.165.148 with SMTP id m20csp2785412imm; Mon, 7 May 2018 00:45:26 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrildT6JL5JsSKqjy6kYuiNgZ+UYck0AsqVNsEztFsGF13GUmngiHuLJqfaA1Kx9uLckEPr X-Received: by 2002:a17:902:aa4b:: with SMTP id c11-v6mr37067060plr.17.1525679126533; Mon, 07 May 2018 00:45:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525679126; cv=none; d=google.com; s=arc-20160816; b=hAP6KLnGms3YAhUt6MxgOfF61XAiNFaXb8HTicBrgn3LylHhbBF8+mtYQujtED7xNC 583YZe8RlVpWl+hSyk81deKSksX1URes7P0ZHgV861LTRC99BTqlaMa1/CB4oibF3GnB kBqOGHYSGSSHp3maKWG+extJMVLLrap0fPC5NvXKiGy+1M2J9YuqyWQIvteLrVSPu0eJ xf/v+jcy8N0+mri84Kd7Lfq2pmWVt2tfOid+Liyb9rHyxPHmZGDKPGXF8OiGojm+9G77 RU39VShPYeY7u7XMKoBttshEVzBJOwYkKdfgS52Xq9vDfo0O+tcrB7a30erszf99xrt5 blWA== 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=dM34XjjdJQ20SIwf57eLu6xJAQFJ2q+p0xVvW4YhXac=; b=cnqTMDM4pfCQfEhMDvbV27aq1JP5j1JHAGQkxt8GEy4S2587Zsfd7HrK1LDf+BtzMD my+oe3Z0Ko3+YcPeu1nHMoXLjyhSzFxHrSeQeP734TV9L95BFpHDQLCri+wuaOYgMOqK XRk3jg9DmeuFSuJfOGhP9O37rq9FoxSfkVVxcSH6b14Rufp3NiaAW1nJFFXBSX6SRazs 2vvySdyzTqnsSgSb9un6qP0cJbfQ7qBC5A7rPKsNs4aUektKfXjKSzA2SCjh0MCTqs7W uIBY4nAIx3AA4m7YiFdLjMURz1j/yk1QQZz3H6iFss/anR5sShvdHFsZD9curs2j8Z23 S7Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector1-synaptics-com header.b=BIUGYW/E; 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 r24-v6si18284135pgu.402.2018.05.07.00.45.11; Mon, 07 May 2018 00:45:26 -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=BIUGYW/E; 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 S1751951AbeEGHoy (ORCPT + 99 others); Mon, 7 May 2018 03:44:54 -0400 Received: from mail-co1nam03on0071.outbound.protection.outlook.com ([104.47.40.71]:41216 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750964AbeEGHou (ORCPT ); Mon, 7 May 2018 03:44:50 -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=dM34XjjdJQ20SIwf57eLu6xJAQFJ2q+p0xVvW4YhXac=; b=BIUGYW/EDPPrDfTQ3uiZlQ1JT5W4LJwxdV1p52xgL+1DK3tonmSKBwvm/Yyd+lqHI0dpd4K8YIWMUxSs1mGAp3h1BamtxYCJiPeYTkTu2vMI/6I2JVvTFgqxzng33rB8Mr7KNryxWCOHBbv5ct4cP0FUQk1Mqknml6NWX6RhLis= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jisheng.Zhang@synaptics.com; Received: from xhacker.debian (124.74.246.114) by MWHPR03MB2640.namprd03.prod.outlook.com (2603:10b6:300:46::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.17; Mon, 7 May 2018 07:44:47 +0000 Date: Mon, 7 May 2018 15:44:13 +0800 From: Jisheng Zhang To: Sebastian Hesselbarth Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm: berlin: remove non-necessary flush_cache_all() Message-ID: <20180507154413.5ca0838a@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: TY2PR01CA0014.jpnprd01.prod.outlook.com (2603:1096:404:a::26) To MWHPR03MB2640.namprd03.prod.outlook.com (2603:10b6:300:46::10) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:MWHPR03MB2640; X-Microsoft-Exchange-Diagnostics: 1;MWHPR03MB2640;3:iyiVTK1BOVwRLjOpnTF9JhTRqyZ3PsWcRXTscNZ9hcCxb4+Gn8iYDp6tCsptdRJqMUUrVtdeIlmQCy6SD5pHQLa7YYDFVc8MQLaQ3cmVUV4UsVr45ROsTjIN900oqE7n9A2YUfvXxMsJClcYJJByA5pRt9d6jF11lFDoacyTzvPlHp2d6xSp3Ra4aSP7HCXtm4ZuZFDpDdHGyUbH77wWSS+jOcwTxla4VND2bX46dt/AowE+jNxyFf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vnUNgZQiuDktaLm0rFFNH1ZSTc3ID/GSJcAw6WdOFlo5jq9rLbd7+23I8krC3lLe44IHjxv7ZgMFh9N/1vtq0y577cyQ2ro510rZrclKV;4:+BEK4KiwFLgTGK/wsFlc69JFk9tVqctO74Y2E4UEZQ9Qv3KvZuJks8G6nOfiXooLun6/LQuzOEfjZUn3gVCfrxFphGztjDt5997PlX+Spr8Xa0hhOpZVLNx16Ws4+IemScAewZs695Hx6iMhBO3MM6NE+jNtXz3DfxdrRtNJqMPU77wBoHMlJ87hiZidWOC8EHLWO7PARU3n5ueXPbuDU+HCnKczm+57a0IbvHPgpliPaMCN/ih2dwoNU8Yyyfn0FWg0vTdWJPEzTRC5V8WTwA== 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)(8121501046)(5005006)(3231254)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(149027)(150025)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:MWHPR03MB2640;BCL:0;PCL:0;RULEID:;SRVR:MWHPR03MB2640; X-Forefront-PRVS: 066517B35B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(346002)(39850400004)(396003)(366004)(39380400002)(376002)(199004)(189003)(4326008)(8936002)(26005)(55016002)(305945005)(9686003)(16526019)(68736007)(186003)(33896004)(230700001)(59450400001)(6506007)(386003)(1857600001)(25786009)(316002)(52116002)(7696005)(105586002)(66066001)(50226002)(47776003)(106356001)(97736004)(81166006)(81156014)(8676002)(39060400002)(50466002)(2906002)(6916009)(5660300001)(476003)(6666003)(23726003)(1076002)(478600001)(86362001)(486006)(956004)(72206003)(53936002)(6116002)(7736002)(3846002)(39210200001);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR03MB2640;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;MWHPR03MB2640;23:ciwtEdD2aUPylNeK9yt/nn3h0s5CmM0G16loPTILs?= =?us-ascii?Q?FyJLOs1TmbiaNRG5mnbzofg290xO0mTdPLB1vNT+2ZgU4aw/fiZxwNEL4JFO?= =?us-ascii?Q?S7X+BFH2aLBONCrFz8ZX1szT2Bqr6amJEUBri5Ph8aMaB+cvJ9YPtmcshjzY?= =?us-ascii?Q?BoxpjFL7Wi0VqgACM6IvyZBPMiuCTh1JHrFKVlbOE4etgkiCgEQnwXw1ZDlZ?= =?us-ascii?Q?OHed6qmEFKpNpSI/lxD/dYRBylHFJfXniQj9yJ8jP4oRiMiLIVmq7+WDNiAR?= =?us-ascii?Q?2NrnLBZQqMFAlNKh8v6sasMrCntjo/yEZvGRYJxXj2h1LpShuuP13ahVNVFa?= =?us-ascii?Q?bkldjcQL03ZOZ4r6p8FHYyL9lHjT71y0vscdl04tl4QLa0WwvBkX0QKevShG?= =?us-ascii?Q?MI800YiBxCz4YzMB2+0kIiJv6R1duFjYZ5WyRw1rS04ipIFEQSxS7v0TeMm6?= =?us-ascii?Q?hqOt79ogCWmSpIEhw9Hi5yssZTOFX11PTDBxWsOSfUdgQes8EHry3+Rojclm?= =?us-ascii?Q?l/LITVQuxepEYbPu03xPwEV9KMAn0RPYqAZIrJq1salyFer1iQjBuMg1IO0r?= =?us-ascii?Q?6GflpZ7fYb+SKzPIspvqb7BX2H187OAzbukPDlFWTV+thLKakha/de2XW1VP?= =?us-ascii?Q?DDBgI00Ec+6GOTF8zwhWW+h8ys6JAtnR8f1dlSTPg5kCt8s2PaeP1pPyzMqZ?= =?us-ascii?Q?j0s9O9XLWTp6KkrhSEbF87GdjRO93x50AMgsWzftTa95QKdv1sDV0S+yN0U5?= =?us-ascii?Q?ZbM/kEQp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SOA7tJsF/dmfV5NNKA/ELvfEjGnfFnnpMrYlEz8Eicyl1dsXdkFGIUo0EgTAJMfimVUT/lykplBTW6JhgvQxS0Fv4Cpcs1ssnzl6QJK6313DWJe0T+NFDZPFnL0Wr/BuquCkv38VfUnTeCdhwh4ufTihAYRUgVDOik5XN9exrvmHYprf93s4F6IfepjW8osdAkNHaXvQyqps+aGY6epJ0Ec5OLHJP107uECjgqX3NtiiYcwbEVa72XRtlaSQ==;5:XbMXwWAxFOu6hgJCAqphEcwoX9U7yAOkR7q+4PzGqcEqVfn3sVTa12/T6Vqj3pTHaAKcFLXVjt3YFXLGYERZMSO59q2MSYWkJGWeJCYQ+G5ZwjtOJQGePqDIWYmkKu/CVARn6NO+v5okxbaLNkjiY3rvdZ3Rc7rn0JRYuyMccoE=;24:UpWhtZpg8FEXEGaANJWwSBl2pYjR029smO7ziX3ZkIgYotncUfwZUO6NiA/wux5XEPVgBvSdJ6UC8l+2shmPwXhsdtwcMB4NhNLV1pM5FSA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MWHPR03MB2640;7:BiUfsb0l18d3oha3Nwf/ycBFEtZah+XU12rVWbbpm31d43pLHdekyraQRrcCyeDjFYcyMuWG7Ci46mRyljbiDGtNt9KKlT8vnyv5QYyd+8eAq+aSSBG51EXU2iqZ3ePzhTKWpO8utd8oGXekbmV19InQ3ZlU73m8FDhP6Lp/s8oX3gXLk/Zab8MapHW3qIloBpfQJwfsTST1hbceRcPrl4gkSWvyhtWZ7QZm6Vbt4SVp/39zsxFPpDu1slwkubVP X-MS-Office365-Filtering-Correlation-Id: d425a3c7-40e1-44c4-b3ae-08d5b3ee68c2 X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2018 07:44:47.4596 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d425a3c7-40e1-44c4-b3ae-08d5b3ee68c2 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2640 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-berlin/platsmp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-berlin/platsmp.c b/arch/arm/mach-berlin/platsmp.c index 7586b7aec272..a8ae4a566d99 100644 --- a/arch/arm/mach-berlin/platsmp.c +++ b/arch/arm/mach-berlin/platsmp.c @@ -81,7 +81,6 @@ static void __init berlin_smp_prepare_cpus(unsigned int max_cpus) goto unmap_scu; scu_enable(scu_base); - flush_cache_all(); /* * Write the first instruction the CPU will execute after being reset -- 2.17.0