From patchwork Fri Nov 9 21:04:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 10676571 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 873BE16B1 for ; Fri, 9 Nov 2018 21:04:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 78E132F190 for ; Fri, 9 Nov 2018 21:04:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D2962F1BA; Fri, 9 Nov 2018 21:04:44 +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=-7.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 091252F190 for ; Fri, 9 Nov 2018 21:04:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726166AbeKJGrC (ORCPT ); Sat, 10 Nov 2018 01:47:02 -0500 Received: from mout.gmx.net ([212.227.17.21]:57851 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725799AbeKJGrB (ORCPT ); Sat, 10 Nov 2018 01:47:01 -0500 Received: from ls3530.dellerweb.de ([92.116.184.208]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LrNoG-1fMUYR1P2K-01335G; Fri, 09 Nov 2018 22:04:35 +0100 Date: Fri, 9 Nov 2018 22:04:31 +0100 From: Helge Deller To: linux-parisc@vger.kernel.org, James Bottomley , John David Anglin Subject: [PATCH] parisc: Replace sync instruction by nop on UP kernel Message-ID: <20181109210431.GA25285@ls3530.dellerweb.de> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.1 (2017-09-22) X-Provags-ID: V03:K1:s9EtVtxVNzApoOuchhHfwzbfI0J+Te7Ic+bWNC9WTS2JvUJFEig ysRA//DAhG0tc8IQILgFG/QC5brJvuxH9GtKyDAMhWCY5JUgIgi34rGReJhoLna+ksTlaQj XnM4ZvJeUP2KVTkLdKR+tBm9zlpfyYbpD7PbWgkCVE4yr7oRcItRsZpvHnHpkYkofI0eYT0 aGx5+Mx3PPzSOux94WyDw== X-UI-Out-Filterresults: notjunk:1;V01:K0:02HZLEdEySk=:SVTyzHM3tXTZ5C8VQFm0VK EaTlyFGe3z98+CWHFXb1r0N+zc9cc06i8Xmh3sWBFXe6s7OZsQeGGzhqOXZOp90j29xAirwiT HaT/8v4musZNHrpmeC5Q7t7XfDdcmujyXJuKKtZESTWnk3hh6AB99rYreoHQBi8BRKG3iBo+v T2IiB3XXGTPqgFXwKTnV9V39zR85J8Wb5LBaEGb7mZnxQ4/ffemAvUeLr0Mw7eHcdXgjthhrV 4ske5Wh0Xvq9F/RXeB2nwn4whuTfn/Q+Qhvfm0hMYPH5d9WJO0Kra6X5NQeJEkW6Lp/uk+tR6 B214vyHX+0reAAX2rS6iCCDEvMtxTFfWsY1ppbC6SG7tr6rMN6SMfsp8vstWebuZpRautQbjN a0ifcE9fVh7/YTG+zhPlSl5nZ3q+gzWw3P+UKfatM4KlN6Bwivz9GLRdn/QWewjJmbE3TcfSS WCtDvlUA36o/xE7Yp4+Y7Wvl+mbCc9HBN9df96L8ioItAK7wHMbtChzDjtyu0vlwj8w4X9PeT IWkOowQSWhXHAtWxwSNlWgJXhSUUkLWWS00aImBaxflu0NCTTf7ZMLylu1UyzVBfImSQulTj+ 9V09Y/Eko1Xmhn6q8oLb6ektx4ee/hgrqgowT3AxufZ1VFwA9Jqs5lEY6z3LbSEEfTGbE+oGg D6AMEu9SN5IoSaNdb69xpLP6QF7Whj02/g6q18d40swT8ff928sFQs04Qk+ZvI7SeUAIUACwd f7HPUmwHb68nduLFMUBVZGq2vzT5+Lm6pYrNhzn9LACkGAzeJtQs2JW7lNydaCAL/Bh/pnQ/M lwjPfxpIqBaCXcIaKCVWNmj6T8X5FkrPiFkOdlNrCGOZhfATPeE7koacR7ZMARwLxD4lpDFKW 68tD1AR21h7Ugl6UoeAmWNrSqF8Qcb0bGUI6bzAKU= Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Helge Deller diff --git a/arch/parisc/include/asm/barrier.h b/arch/parisc/include/asm/barrier.h index dbaaca84f27f..43bcdccc56b8 100644 --- a/arch/parisc/include/asm/barrier.h +++ b/arch/parisc/include/asm/barrier.h @@ -6,7 +6,8 @@ /* The synchronize caches instruction executes as a nop on systems in which all memory references are performed in order. */ -#define synchronize_caches() __asm__ __volatile__ ("sync" : : : "memory") +#define synchronize_caches() asm volatile \ + ("sync" ALTERNATIVE(ALT_COND_NO_SMP, INSN_NOP) : : : "memory") #if defined(CONFIG_SMP) #define mb() do { synchronize_caches(); } while (0)