Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1981893imm; Thu, 24 May 2018 04:00:57 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpqGBFBtxGz+LlERrzkiXf9EYjy/pZp8w1L8TTcv3/9z9KpS1VDX5xPgaVG/GpK+edDFTGU X-Received: by 2002:a63:9612:: with SMTP id c18-v6mr5447759pge.361.1527159657855; Thu, 24 May 2018 04:00:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527159657; cv=none; d=google.com; s=arc-20160816; b=k8KNhs+TX8GUZ+hLp3ls68ZQnNbXG02elaF6aYxSV+wQMNq04TAkoF/2AQaghIuqwX Lv4huOnrKvYaWqKreGEYG8w29wJ6o7np1ckIRhgcH0Fg9yGswB02kleUexsGHif7eCnS dZQl6ghI/UXTCV3gTPKHEgYjN0svZqKm8WsYbIlBNkTPNoV6ittOWYhcRUdGYLrG65PH W3ZpNAwdmXNIf4VTJtf5VySynfSC4KKKxAr+/BG/61RrpxwzKXHNfjQ18YwtdTPihcmZ WydfH3ERNzvY/IMVFpWU3Rjx9yHxZaNn58IYRompaqSIhrARCP+rgSTXqpDrFbZa8Eu2 Dn0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=egdTEVbC83m2wc5LCh1SMTdohAWb6aslLjkOusMdWAo=; b=RuYtJle/TrMAkeO70DA/gCzMdw+dayRaW/dEs4oZxqw431l9j21cqYXJI/wLfB7c1e dc9NqYx9Svvtnt+dU8LiHeNp68JafeAfVyibb4HidVCC4kAjPt+KSNs23xQYP2se3jkt tpS31iKopcVHB98WlE1NmkiRJ5sc4LPcF/w6sqOjHwdIj4nwRlg+mMFHfpsUFpQz79YG DD8Ji2CjoCA9Ux4J+OL6ovkFfdISxxSIIMy/+XpR2BVCgd8kanrXPRfShV3ZJA4c6npm zg8ZSjrs1aXZamHiYoBDdSj1zArque0UFvZjwunfx5n/WbkP/8Z7LCh85csQzkd9Dyjd CrbA== 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 n5-v6si16525920pgp.659.2018.05.24.04.00.42; Thu, 24 May 2018 04:00:57 -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; 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 S1032767AbeEXK7e (ORCPT + 99 others); Thu, 24 May 2018 06:59:34 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:40916 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030264AbeEXK7T (ORCPT ); Thu, 24 May 2018 06:59:19 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 743F11435; Thu, 24 May 2018 03:59:19 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 427C53F25D; Thu, 24 May 2018 03:59:19 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 4BB531AE3701; Thu, 24 May 2018 11:59:47 +0100 (BST) From: Will Deacon To: linux-kernel@vger.kernel.org Cc: peterz@infradead.org, mingo@kernel.org, linux-arm-kernel@lists.infradead.org, yamada.masahiro@socionext.com, Will Deacon Subject: [PATCH 0/9] Rewrite asm-generic/bitops/{atomic,lock}.h and use on arm64 Date: Thu, 24 May 2018 11:59:37 +0100 Message-Id: <1527159586-8578-1-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This patch series has previously been posted in RFC form here: RFCv1: https://www.spinics.net/lists/arm-kernel/msg634719.html RFCv2: https://www.spinics.net/lists/arm-kernel/msg636875.html Changes since RFCv2 include: * Rebased onto v4.17-rc4, which allowed me to drop some patches from the series which were merged in 4.16. * Moved bit.h to be linux/bit.h instead of asm-generic/bit.h Thanks, Will --->8 Will Deacon (9): h8300: Don't include linux/kernel.h in asm/atomic.h m68k: Don't use asm-generic/bitops/lock.h asm-generic: Move some macros from linux/bitops.h to a new bits.h file openrisc: Don't pull in all of linux/bitops.h in asm/cmpxchg.h sh: Don't pull in all of linux/bitops.h in asm/cmpxchg-xchg.h asm-generic/bitops/atomic.h: Rewrite using atomic_fetch_* asm-generic/bitops/lock.h: Rewrite using atomic_fetch_* arm64: Replace our atomic/lock bitop implementations with asm-generic arm64: bitops: Include arch/arm64/include/asm/bitops.h | 21 +--- arch/arm64/lib/Makefile | 2 +- arch/arm64/lib/bitops.S | 76 --------------- arch/h8300/include/asm/atomic.h | 4 +- arch/m68k/include/asm/bitops.h | 6 +- arch/openrisc/include/asm/cmpxchg.h | 3 +- arch/sh/include/asm/cmpxchg-xchg.h | 3 +- include/asm-generic/bitops/atomic.h | 188 +++++++----------------------------- include/asm-generic/bitops/lock.h | 68 ++++++++++--- include/linux/bitops.h | 22 +---- include/linux/bits.h | 26 +++++ 11 files changed, 131 insertions(+), 288 deletions(-) delete mode 100644 arch/arm64/lib/bitops.S create mode 100644 include/linux/bits.h -- 2.1.4