Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6462347ybv; Wed, 12 Feb 2020 12:43:18 -0800 (PST) X-Google-Smtp-Source: APXvYqyie1YCKS+zr/5B3aJg6gIoLsuGXIwEYy0jy1DrWpetv2Ag2a+feU0ZM6sxtW3JaMEmxoS8 X-Received: by 2002:a9d:7305:: with SMTP id e5mr10276435otk.64.1581540198690; Wed, 12 Feb 2020 12:43:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581540198; cv=none; d=google.com; s=arc-20160816; b=hMrbG/ylV3nE4LnHIWrsOXXBlbtTY77YjHry606buVA9guEq2BKZmoRtlgdQhtxYVb e5LeJlDxbf97PXXhhvkMLp5ysTuJDIA4ezLJDCMqyf8OEtbBzh0F8G31Mh98CUmYss5l bdb5Dhy8iD6DyLi/38r8kR1ceHQyNILWfB6UvCPzoAZ8JiMaGZVc76ljnO5jRiFd+BTk MA5hHfeVCyfGZvK5cfPOVeXBCjPjgeH2FQh+vrrYsoEJ0t6fsNM9WTq8EoYlNd2e+xSH wBoVPtI9wHZpNGJd/yeDubjhM/fhATJ3i27PkMxB6/YlOwLMv/a1OlJguwst87d3wB1u kz7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=cK0w4zP5oB8frygUQsvrdG3yZRoapcrttw/y+1M/2S8=; b=umn1+Q0MwgCfbZZqCsETQadFjIJf7XyjTxsZWppsCDlxw6LGWI1lRSjORMkYu2ZPkt Uko1ob0yYoWunei1+RGl+LlLSR/cHmGeI/H94dha6iEWk4kjGU60ueI6ZoLJYG2MlGrE abGJHBQRwGib3uNbW1m0butRrrQvKbs0QTAJ5ZSnHLtvNKBPQn6BFjTnwP5nOE8QykzI p1CplUZgPl5Jfq06mNPk0HXS4V4+uPiqFTcmZ08wGtgl6ne0ncGsty+WI1/ujmy5j3ZH huESP5rIR85T6Y7WHp7IM+/25r6Z8QnSZk6Zwmeri6UcJlX0XVzqIjVCWxkJ2XPLJq07 i59w== ARC-Authentication-Results: i=1; mx.google.com; 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 f17si750617otq.96.2020.02.12.12.43.06; Wed, 12 Feb 2020 12:43:18 -0800 (PST) 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; 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 S1728098AbgBLUm4 (ORCPT + 99 others); Wed, 12 Feb 2020 15:42:56 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:52203 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727138AbgBLUmz (ORCPT ); Wed, 12 Feb 2020 15:42:55 -0500 Received: from mail-qt1-f181.google.com ([209.85.160.181]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.145]) with ESMTPSA (Nemesis) id 1MryKp-1jng0h1Ror-00nyhj for ; Wed, 12 Feb 2020 21:42:54 +0100 Received: by mail-qt1-f181.google.com with SMTP id d5so2719660qto.0 for ; Wed, 12 Feb 2020 12:42:54 -0800 (PST) X-Gm-Message-State: APjAAAV1U1giEwzzmbU1B7gyyBtRVBMCLMDrx4mfk97wJ7AXHEaqf0nB HQP6yUcGRl1znMlHT1vsRy9/rrEl6QK9RfhYwdc= X-Received: by 2002:ac8:3a27:: with SMTP id w36mr20979826qte.204.1581540173275; Wed, 12 Feb 2020 12:42:53 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Wed, 12 Feb 2020 21:42:37 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/7] microblaze: Make cpuinfo structure SMP aware To: Michal Simek Cc: "linux-kernel@vger.kernel.org" , Michal Simek , git@xilinx.com, Stefan Asserhall , Allison Randal , Enrico Weigelt , Kate Stewart , Shubhrajyoti Datta , Thomas Gleixner Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:EeepXst0+fc/JOzNh92gXY7nm4TgG7y6vUTId9yyaNrX7qybVPr pVOInvXiOoTFyyKXWj1olNL9t0dHIhiLyn0oelzFjTPmFBumZHeWvNcT6T0W53QA+sHUsym GRlRU/s1r9JZilxMvnskxjq0+IohqhutbKv2u1k/qBpYX2S4aPlIR9N7jmt1Zbme7iixPCq US9IbIEYOOPvei2yqOldA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Q4BiVOqfuY8=:bGWpvUa+1qjKX2j0N90l9o KmZftTqbJCuNgJNXYDZeL+sK9yAnES+Ww2pmgLfm/A4LhUyowkMjlyRE6Jxi/+UJgS8kvaGgZ M7CQAfgFmmEbsHCky8icbUpy144YeCDAV8r2mlmLcC9SzWCHZf90YVdg7NbMgz+MFR654MQnd ZpBexjqxHpv9+jskMCKoI0Uv68suK4518twxBeOiSC/NiX4lzSG5Uixi5DOK54x7Xd8GitRGr gYVl2htYC8yF/esDPk++STU8bGkWxrUwedbiInhrvlRXXnzEm825wjEt0+yHzwyvZCwRXKgfX dtzJgpx6YmtSJO5bVy7kTpZRw5aqv5hPQDpj0hPh2TBEmGtpSHHgIskwec2fdEFqunLe1OoYW Y19i7rH0F9AyQrfspqoMF4I2hv1F2qGFCQaHpWFzK4+/HDhInd+EhkeZlR32stmWolbV2Uk6K UbKCduFVnRcgjLKUQoPq7cligkbmQ0H2MR0GK317PCEqdQdzsKhCQ1eCoU9hcLiSPpn9N99hD VXuDBjrTEoZ+E2nWnU0qm4nPIiBpXXCqf/zpZdyydAToEeJ+clhEjEdtgdgS8io/d2ras9YIS mllcPQNJfoWoFPWIqWRkQzRZVurTtvSE4PMUAnabjrlgDptkPjSBKjWJlIDHUmHEyWJyScWZh V4fAZp98ZX78S4WqW3C268JURNcOtl7YdqnwEqOfvjxNrySG0YoeVLLBPTz3TGmb9nbBQAtq3 27BeiZ/SR3uoVE6BtIsNfr8JDC42naWl6+TFlJT96eXkCjVWEvEnD4IqzBv8qzCM6T8fDaf8L xO42C7qpNI3DcaHuaK7NQB4ywHLyRcdjU2PK61yJU1pg+b0IZc= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 12, 2020 at 4:42 PM Michal Simek wrote: > static void __flush_icache_range_msr_irq(unsigned long start, unsigned long end) > { > + unsigned int cpu = smp_processor_id(); > + struct cpuinfo *cpuinfo = per_cpu_ptr(&cpu_info, cpu); I think all the instances of smp_processor_id()/per_cpu_ptr() should be replaced with get_cpu_ptr()/put_cpu_ptr(). Same for per_cpu_var() -> get_cpu_var(). Arnd