Message ID | 1450228238-4499-18-git-send-email-noamc@ezchip.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 946A61402BF for <incoming@patchwork.ozlabs.org>; Wed, 16 Dec 2015 12:16:44 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1a90hv-0002Xh-3C; Wed, 16 Dec 2015 01:16:43 +0000 Received: from mail-db3on0067.outbound.protection.outlook.com ([157.55.234.67] helo=emea01-db3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a90hs-0002Td-Ez for linux-snps-arc@lists.infradead.org; Wed, 16 Dec 2015 01:16:41 +0000 Received: from DB3PR02CA0029.eurprd02.prod.outlook.com (10.242.134.39) by VI1PR02MB1085.eurprd02.prod.outlook.com (10.163.163.145) with Microsoft SMTP Server (TLS) id 15.1.355.16; Wed, 16 Dec 2015 01:16:17 +0000 Received: from DB3FFO11FD039.protection.gbl (2a01:111:f400:7e04::172) by DB3PR02CA0029.outlook.office365.com (2a01:111:e400:9814::39) with Microsoft SMTP Server (TLS) id 15.1.355.16 via Frontend Transport; Wed, 16 Dec 2015 01:16:17 +0000 Authentication-Results: spf=fail (sender IP is 212.179.42.66) smtp.mailfrom=ezchip.com; linaro.org; dkim=none (message not signed) header.d=none; linaro.org; dmarc=none action=none header.from=ezchip.com; Received-SPF: Fail (protection.outlook.com: domain of ezchip.com does not designate 212.179.42.66 as permitted sender) receiver=protection.outlook.com; client-ip=212.179.42.66; helo=ezex10.ezchip.com; Received: from ezex10.ezchip.com (212.179.42.66) by DB3FFO11FD039.mail.protection.outlook.com (10.47.217.70) with Microsoft SMTP Server (TLS) id 15.1.346.13 via Frontend Transport; Wed, 16 Dec 2015 01:16:16 +0000 Received: from localhost.localdomain (10.1.3.132) by ezex10.ezchip.com (10.1.1.4) with Microsoft SMTP Server (TLS) id 14.3.224.2; Wed, 16 Dec 2015 03:15:59 +0200 From: Noam Camus <noamc@ezchip.com> To: <linux-snps-arc@lists.infradead.org> Subject: [PATCH v4 17/19] ARC: [plat-eznps] Use dedicated cpu_relax() Date: Wed, 16 Dec 2015 03:10:36 +0200 Message-ID: <1450228238-4499-18-git-send-email-noamc@ezchip.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1450228238-4499-1-git-send-email-noamc@ezchip.com> References: <1450228238-4499-1-git-send-email-noamc@ezchip.com> MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-11.0.0.1191-8.000.1202-22004.003 X-TM-AS-Result: No-0.947000-8.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; DB3FFO11FD039; 1:SmA0Ip2ijU89brVkkJgD+ys4bW3NnypCZvQNHA0MPz7AsRUMost0tBZ0UVbIabWlN67Bxx5jrNY6HcGeK+G485JckPg0lFDA4KLnUnOqCObTi2L5SgDu3T8qgalEU9DFAoBTIHqI8DZyEZZCdBqaogNNcLxnpQKoHOpytW/rNyAaagAESuOqrX9T++xIhpGLzoJ6B7/IMHAvEgwG4X4+ZDB9AeT0TJCmDXoo/8NEjOe3OxOadSvk8GVHasUskjW9M4cqE8IiSmwTNSfQ/JP9xDrJ0AMJbFR3wZeie87LEFxo+CmL3cB1g6m02fc+E7K5MBwDNqw3LszbBVOlqwhNyxwDgZSpztr7qfQfWvDYISopi5MhmhtditCrX0hP43srVfQlbcgqF9JSU8qH4W5Bbg== X-Forefront-Antispam-Report: CIP:212.179.42.66; CTRY:IL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(105606002)(33646002)(85426001)(50986999)(5008740100001)(50466002)(1220700001)(2950100001)(36756003)(11100500001)(92566002)(77096005)(1096002)(50226001)(6806005)(586003)(48376002)(104016004)(2351001)(110136002)(5003940100001)(19580405001)(106466001)(76176999)(19580395003)(86362001)(189998001)(87936001)(47776003)(5001970100001)(229853001)(49486002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR02MB1085; H:ezex10.ezchip.com; FPR:; SPF:Fail; PTR:ezmail.ezchip.com; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; VI1PR02MB1085; 2:Tr7R9e0Xp9QxtrAvINGn6l3wG7WYXdSQhXvUZ3BW3woikzmEubn5flZpjy84z3lNP2unP4dEaUM5ClZrNWdTVwh2XPIlpMyoIv34t8bsCMjWzLcz6krQCJEQmifKCeP2inFAjK7IiJE/ZqxbQLf9mQ==; 3:3fWIprrCvEVjZe8fPZ8whYDz3u3keXPjJq/KZOpQM7dCwcg7ZPNmI898ridQl6sRREBz5cLWh5zCaRMGWmOmUpOQ4NIVgEAed1GfDlxR5rgxTudKQyCtCY/kZ5pCt+vpXbF5V+aOo7a9BLq6QHM5+gA6OPsxAEqiL4ZZPl9AfQCZCFuvEKHCK3ed3QD4VUjIlAkVhuhEBEkiv7ACR3WB4AWtkKYNwTuiu29uny8HzF0=; 25:arSimeiaW/WoitX0pmHGZVUd1CvO4rs1hFu7ygWO2WOfBBglF/3Mw/vdqcgYTVTw8pUAvBpecHdmaPGw9fE877cXkq8icOVe0Ktt+1cgpFZtR6ADPEBIUvDd12eMvoEP3ayCsnQje2mjF1ch4v97CsuFHRZdXbyf0INstnMnzwOdwt6rEaoW327+/8S2OZwwzikHYKNKgEi+jptcif0suYPbOJF31KgiQNp5eRlZY6sWsXfgK9HnckZ42oBbj5Yx; 20:vBzYsi0/CRQFiFJRtyFiO9xestUxkhx9NNSeNAlmaRKRIFpEfZ3m3RNRdVkZl6LFMauPTlZm0CCEkSgfCrbErpY8opRu2RDsA0ayseJke9SLlD1paI2XCrqe2CFyo4X/yXJz5qaZAOeQyk+fOy6T1tUN9KgeimTkMfInAWm8L8U= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR02MB1085; X-Microsoft-Antispam-PRVS: <VI1PR02MB1085E559F73C48C464BEA3A3D6EF0@VI1PR02MB1085.eurprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(121898900299872); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(10201501046)(3002001); SRVR:VI1PR02MB1085; BCL:0; PCL:0; RULEID:; SRVR:VI1PR02MB1085; X-Microsoft-Exchange-Diagnostics: 1; VI1PR02MB1085; 4:RSGgPU860HGEGvrAnFUn3SshBe23+KVtzfygjXVbBNHE0LPPvjD60iXUThrGYuxzs+ZB75DIqygxOSUs40cT7sZ0lukxbu8UeGG3cEB/J7gVI3DW3hedhJDSHHcDQi910nK8jvfZ5AKwZNHznodc5WfKVNZpjKZgV5VBJcOvGKyvEVVnjPSMWGbyUt8iQy1Dgmpi+7dMxDHzz7BQzPHwxSeiilXzKcJxbz5gCBSo05yG4QLRFt7Yjsg6GV4AoeJX8zeUgmmlI+z1ceV4fYZ8XHvydfzzLYMKphdxQtJmSjdTlkf+j5+5l7WMLNHbtg3VE2tuukIhgOxOnduO5abMHocxd3HfsnZI3SC/dCzyNb6192ilyIgoI2t9z6aDOEThvjhR5/LwENRaZ+8Stp8Z9kbrEHneQw4uJ9DdUeH8AJg= X-Forefront-PRVS: 0792DBEAD0 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR02MB1085; 23:NneriSlmxCcM5Ya+KNgpoW6iW5OGpzK4T1WxxPLnr?= =?us-ascii?Q?JSjeUNhAt+dI06lsIyzcBnmS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ascii?Q?MKTFL/TjsMAdU9pRSEaJ2K/MTzGCtOUjmZVJGusdE9m/DSUZcuqVvQ6CD+I+?= =?us-ascii?Q?Jl9tLQkBGu2Y7SKFoSXDZy9qrPFpoJKGApMn6FyDn+FAw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; VI1PR02MB1085; 5:SLx4VUfLa34DLupyyqBkKpKBEwFJjJq1cChtr34/fy2bqlC6LaUVZA/q5nCptTGNKh496FkS3MqEd5OS/GxpIU/s4AoVt6mQOofO2mpzGqgXrXlllc8y84qBvNhT87MmrkYzW0NfYeZ/klbBcRzlbA==; 24:A3alaubZolLP4P2cvxIKAZGFnRfmTSOfOhRM7RnUOd0QMQHd2+Ox6TRq35SNYkq+ylH1bi98zQ6jVpM1yqDYwWzAf2/B8vvAhG3waHSU65U= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: ezchip.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Dec 2015 01:16:16.2404 (UTC) X-MS-Exchange-CrossTenant-Id: 0fc16e0a-3cd3-4092-8b2f-0a42cff122c3 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0fc16e0a-3cd3-4092-8b2f-0a42cff122c3; Ip=[212.179.42.66]; Helo=[ezex10.ezchip.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR02MB1085 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151215_171640_871914_5CE5BBD8 X-CRM114-Status: UNSURE ( 6.68 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [157.55.234.67 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [157.55.234.67 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux on Synopsys ARC Processors <linux-snps-arc.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-snps-arc>, <mailto:linux-snps-arc-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-snps-arc/> List-Post: <mailto:linux-snps-arc@lists.infradead.org> List-Help: <mailto:linux-snps-arc-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-snps-arc>, <mailto:linux-snps-arc-request@lists.infradead.org?subject=subscribe> Cc: Peter Zijlstra <peterz@infradead.org>, daniel.lezcano@linaro.org, Tal Zilcer <talz@ezchip.com>, linux-kernel@vger.kernel.org, cmetcalf@ezchip.com, Noam Camus <noamc@ezchip.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-snps-arc" <linux-snps-arc-bounces@lists.infradead.org> Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
diff --git a/arch/arc/include/asm/processor.h b/arch/arc/include/asm/processor.h index 41142ab..974b878 100644 --- a/arch/arc/include/asm/processor.h +++ b/arch/arc/include/asm/processor.h @@ -57,9 +57,18 @@ struct task_struct; * A lot of busy-wait loops in SMP are based off of non-volatile data otherwise * get optimised away by gcc */ +#ifndef CONFIG_EZNPS_MTM_EXT #define cpu_relax() __asm__ __volatile__ ("" : : : "memory") +#else +#define cpu_relax() \ + __asm__ __volatile__ (".word %0" : : "i"(CTOP_INST_SCHD_RW) : "memory") +#endif +#ifndef CONFIG_EZNPS_MTM_EXT #define cpu_relax_lowlatency() cpu_relax() +#else +#define cpu_relax_lowlatency() barrier() +#endif #define copy_segments(tsk, mm) do { } while (0) #define release_segments(mm) do { } while (0)