From patchwork Thu May 24 10:59:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 136734 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp2039537lji; Thu, 24 May 2018 03:59:38 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqlWxRkjr0RLT0buM/PdI5bbky4D+hKB5zd/UzcSFE/mN7pna+DGrDz1btzcfcebYdNSZMG X-Received: by 2002:a65:5002:: with SMTP id f2-v6mr5339820pgo.38.1527159578308; Thu, 24 May 2018 03:59:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527159578; cv=none; d=google.com; s=arc-20160816; b=Tv3xyD7J1U6KBo4lEUUQR1ne6baIaHFST30xnjWYjbXa70NVKmBkuX4LqBxrj0VDhS 1GpumQeXDercNxiBjY9KwoZs6jsmSbkjGFZsUqjdwOmA1B+zBabY99225K4XbJnnt5c5 eRX4lMDWkPA/06PJrH2hpXmP8siE1K5Wv45HV9v6FRfMP+Gry1ZZqezqRhDbKuLsd8gx F/o25rgYtLoQaQpd57V1NpPBDcphhUWvPqMbQeC/E5LVDJr5lxq3v0SE93TUtXFmwWdm KTTRb1prgHkPRDnVv9M8bJR6f0jDyLROPtZasG/mBZpluls+XtsQVWT0iUIit47DiFpG L1Kw== 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 o1-v6si16338877pge.307.2018.05.24.03.59.38; Thu, 24 May 2018 03:59:38 -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 S1032771AbeEXK7e (ORCPT + 30 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