From patchwork Sun Mar 25 17:50:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 10306993 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7B56760212 for ; Sun, 25 Mar 2018 23:15:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E72C29139 for ; Sun, 25 Mar 2018 23:15:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5EFBF29158; Sun, 25 Mar 2018 23:15:15 +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=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A280529139 for ; Sun, 25 Mar 2018 23:15:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nawPUPNkEiaAawT7NvKbpoTip35Y3tYMhvuf7skk5OE=; b=rGYjORdKQ2j87W 58JZnlPLycxs51+UDlSldU6truGVgK/SZMUhnSi4vlRUx3ll4EMCuCtMr94PS6PxL+wzlJeEnuUKh WQioe1049CHLcCrmx2Kn98haK6Qsm7zJN2yHYuHJGBp6FZT+LnDfICVeXotE+ubDGf1UZYrH3eyep 8eoILYWZe9r/HKKie3LNGrWsd3F6qVPyRWSQGe3p5J4FXu4H8FxhieALoIILjnhJLdbFECUkkE+NJ +/BzNgMtqqHlnQnjrjJsQxwDJKQgcI5CActynMYGLsHuw+IfqrH/MMWqisaElFIMKLuEXHOvhwbqx h/pUxntWxKevQEvSWGQQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f0Eqw-0002x0-Sw; Sun, 25 Mar 2018 23:15:06 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f0EmC-0006ba-ND for linux-arm-kernel@bombadil.infradead.org; Sun, 25 Mar 2018 23:10:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=lJpFJHBZ5WAYVuLbWO6pbYUXe179oZ2Bckec6FZ27lA=; b=iRopwCRomXB35fSC+ryAm0ivW tarQ24iI4O15ucAb20/7ZZfoSTK3LlJV6AJaQv7H8ckvFStal1tgBgRonCnzp1Hhsnv6fKJt/e6hh +8WveKpyGC69kiHFv8TZ2PAdhv9Flicmm5uhpl64AXiXI0ch/memqVba5+uuidPDlcjrIyemz9dCx +fivNsEFLP+RrTimsrO7c2ayIBuakzjctZaxEwWC5DXNH70n4tGLOGB6eFfy63eyyCaXb6mZvjK2w kuTh3CviDi8aYmqBTd5r6iAN0e8one8E7rAW9XadFt6V+mVYF4r0rjZirqPujcZiQkdPqbI9zAry5 QELNEIz0g==; Received: from mail-bn3nam01on0060.outbound.protection.outlook.com ([104.47.33.60] helo=NAM01-BN3-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f09oa-0005Tx-JB for linux-arm-kernel@lists.infradead.org; Sun, 25 Mar 2018 17:52:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=lJpFJHBZ5WAYVuLbWO6pbYUXe179oZ2Bckec6FZ27lA=; b=T+kCf0hZvDH81waPoHTdKIWPseQfxIGzE1W7ok6laxgBAgyuJFXHXT7l7yTAuZE1aztoCtg/Pw65aSFOIwugFWvqpn+nbqNiJYQK4Q85hlLNayWOrbMAV5iGsz5Rx11X0HCggda1PnvV0Yzw/Uk+CxvRXVAyZE0XhDO1iDs2v5M= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@cavium.com; Received: from localhost (36.84.65.149) by DM5PR07MB2907.namprd07.prod.outlook.com (2603:10b6:3:9::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.609.10; Sun, 25 Mar 2018 17:50:46 +0000 From: Yury Norov To: "Paul E. McKenney" , Chris Metcalf , Christopher Lameter , Russell King - ARM Linux , Mark Rutland , Steven Rostedt , Mathieu Desnoyers , Catalin Marinas , Will Deacon , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Subject: [PATCH 1/2] rcu: declare rcu_eqs_special_set() in public header Date: Sun, 25 Mar 2018 20:50:03 +0300 Message-Id: <20180325175004.28162-2-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180325175004.28162-1-ynorov@caviumnetworks.com> References: <20180325175004.28162-1-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [36.84.65.149] X-ClientProxiedBy: HE1PR0102CA0026.eurprd01.prod.exchangelabs.com (2603:10a6:7:14::39) To DM5PR07MB2907.namprd07.prod.outlook.com (2603:10b6:3:9::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 648834a6-4dcd-44f7-9982-08d592790dcc X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DM5PR07MB2907; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB2907; 3:zYydbvvRqmyejmDL4DxUWXQLDD3TyfsdufpN60HrI7jiDXmxK2qFYUSLXXFcJpXEmLcY87jDWG7rttDQqxhQN+5/xq0FHiSbPDMTkKm4tJNfnGRW74K8AH763uJxXBU93KYBlyLpWNO0kCX4BohySOfGmHBRSQRmZi17oEWrMeZFjxBfP9T+pqwgyGO1UAMqX473hFlKRioBd/qqiIbbeP2wkBhIkfvcXDDGbn30qbaIP1kj1XdAOZSeCRij8KHa; 25:8AHUxM7xcXNJUpuIAbvLOene0XzP0X5y1ewEtRWkv6Vkq7x4bWqq/Q3mv43CazPeOWt4xa/IcuGESj97X6wN+Qgq6RXkp7WzRF+N2FnLpyYL5+Ha7Kwqqdc+RAsqQ0zbigkRsn8MnHW7dsJV63dgIAlk3GKSLZsPGTW9WGkgWJFE108UZAVw7cnbE7S5WzYpvSFxFmlvqxkIGlCZgg1Y9N13K3CeHNXZUZjpw6vPgMixmWA2jxYjA4ydfvI5VzTs2X8wIcNnYoPwHCSxrAaTMjtMoQFzKuNh5+/B0kUsKYN8PuO+ls4dJgc6vu2InRy1OKP9uKYqSVZguuaRKUlMkg==; 31:eLWeGu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nu/zsqUUw1sJL/Z+53VAN0jNke8th9HTFAzIA5vSAnQtw6Gy3VXK6Qd1YRSbhzim1Vl2pD93WGIKHpGg5XV1E1ej1xvcbhTBJ3+y/OmnGPw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(10201501046)(3002001)(93006095)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:DM5PR07MB2907; BCL:0; PCL:0; RULEID:; SRVR:DM5PR07MB2907; X-Forefront-PRVS: 0622A98CD5 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(39380400002)(396003)(346002)(366004)(39850400004)(376002)(199004)(189003)(106356001)(6496006)(55236004)(76176011)(4326008)(25786009)(110136005)(2906002)(3846002)(6116002)(1076002)(7736002)(7416002)(50466002)(5660300001)(305945005)(36756003)(2616005)(47776003)(66066001)(105586002)(76506005)(6666003)(48376002)(16526019)(478600001)(186003)(81166006)(81156014)(8936002)(50226002)(97736004)(26005)(8676002)(11346002)(386003)(16586007)(446003)(316002)(6486002)(53936002)(51416003)(72206003)(42882007)(68736007)(956004)(52116002)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR07MB2907; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR07MB2907; 23:D0JubVDkSRXLreKVbqzyTNORREV8RmemlKzOsixk5?= =?us-ascii?Q?WBTZjNxmma6s8TKLsmBsbD27qVx0Zg73YMmBsyVEyioRgOuGD9wPrUyPR+oz?= =?us-ascii?Q?jNGhB91jkiniscsYKcHzkFBCtg+2rMuOr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ii?Q?mNb6S8G3scY1bkeHlzP5oi+Jo0kvYzrv/WEmaVxwJh6/qXZ1tWKkSv/2XKzb?= =?us-ascii?Q?/KyIf5U7vf5H4KOpTkRRbOHGj3yqGA14upjdlZqZe+P5gSB6cNnmUhXqjkn9?= =?us-ascii?Q?ThrmUzbB7t/BZbgX63pdP4cBGvdNhhiS687jpHUuJcxsoYg/BmmJ8JP+pgPC?= =?us-ascii?Q?scHD06QzUYas3MwCEb7McJR116+VQodxb+l0Kil3LjKI7xa86hca7JHeVSAX?= =?us-ascii?Q?61+OLq+/yqYY00AugMdl61u2p5/8QDUrzDhwCNkRYAL3VOZL+kAGdOKeRT9U?= =?us-ascii?B?QT09?= X-Microsoft-Antispam-Message-Info: iVQEuNnu9kAXzpyz7UWzdZPii0YRNPMzBcAimvpMT5d3U14kzUj8P9MxoCOPkXp1tWkVNGCqSfXmF0POlrT3rcn4GLLuMRx4fmmazc0pu0nky70MFfkCepeYHNukMXN1UF+reSy6UtE+xywREXG85y/s4SY+B9/iUiYu6+cuRMLtqTuO/igjgZsLrxQx2feQ X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB2907; 6:dm5gGLHsEE68w253uMYLbcd0iJjRhxOBVUizPX2pWL8s9Zid5jfqYOznxlLWd1wlWjEa+a0Cfq0CDqxHiWQkmDpTDGle1qT93keb5jrfhqXLu4Uv5cxsfxKjkqaonikFeWFAfLEvFv7BzdA0xkYYypM4I+sik1iMg/szQ1AUBqN/VPX7oy6119BBwIfMQcrKPe01FZubWedAeHr/InsqzlaALY8ExLzfYgBpLwS8QNrjYrXiTTeINftdIu3QoHcss5kaLS4UBPRMPrxqu3z2DRrKIovEqXG8tUE58hn/ROGMlxbtnlf1CjWcKVQDsQltYp7KbYZy7lffuu5NevmjgYq5e6YycKG2rEAIyKg1TfmIsbVtsajcjX+nfEWtfQhiyrHTJUazxd0YPyAYPifvvg40I4sT/Tzq6sDyAvDACWo0iny1SLOtya9oMxoXkM/97grKyRVJx8Zlalc/caeTFA==; 5:9XTu2LWtgaKUFD6puO+jCq7QEPxCfGSs68tnd1g7OF74bqvhrH2n0LDsBELrwGBPBMgfUYD1MVz1PNtQQj7gWbNzN0NcFjp+2HReAiZggmr9NxK46LV/+7tGjhF4n3ihUGkGxWRSL4Uky7jxA/0W+DxSlRFSYGxEaI302ziLs0M=; 24:RKscHgUb0CkKJm124VYqCwsHBSg7NfvLVucfrzPvtLuUj9FDpichX1+4vdSLaHpsGtPq3h+NCOonsNZK6GTfKZbbBhGxjG5bq0XZFJClhVw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB2907; 7:KK7Ycq3IXrSjhgh5nvERUrWPbKkTZQV8KJSNdYJI0GmCB72cafq8dlI1TblhYUsOP77cmX0pBEqxQAPtVbAjTAa/dgbhX8LYzJt4oJmPFu6MlI7yf0gxLZoW77/G3TvXyzGlmFLN2CiqtAmS4Gzy40ZRh92M82kWFrZ/VpAiyO+mYIcSsgpJj8r6dfNUaDpbtbU4kQlvf6J8j6IEHFiScg/DhiJE0RbgDqS55VGfRWM/6G8yH1Z+RbDCYPmBzNmA X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2018 17:50:46.7219 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 648834a6-4dcd-44f7-9982-08d592790dcc X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB2907 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180325_135220_691296_8762DB8A X-CRM114-Status: GOOD ( 12.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, kvm-ppc@vger.kernel.org, linux-mm@kvack.org, Yury Norov , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP rcu_eqs_special_set() is declared only in internal header kernel/rcu/tree.h and stubbed in include/linux/rcutiny.h. This patch declares rcu_eqs_special_set() in include/linux/rcutree.h, so it can be used in non-rcu kernel code. Signed-off-by: Yury Norov --- include/linux/rcutree.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/rcutree.h b/include/linux/rcutree.h index fd996cdf1833..448f20f27396 100644 --- a/include/linux/rcutree.h +++ b/include/linux/rcutree.h @@ -74,6 +74,7 @@ static inline void synchronize_rcu_bh_expedited(void) void rcu_barrier(void); void rcu_barrier_bh(void); void rcu_barrier_sched(void); +bool rcu_eqs_special_set(int cpu); unsigned long get_state_synchronize_rcu(void); void cond_synchronize_rcu(unsigned long oldstate); unsigned long get_state_synchronize_sched(void);