On Tue, 17 May 2016, Peter Zijlstra wrote:
Subject: locking,rwsem: Remove rwsem_atomic_add() and rwsem_atomic_update()
From: Jason Low <jason.l...@hpe.com>
Date: Mon, 16 May 2016 17:38:02 -0700
The rwsem-xadd count has been converted to an atomic variable and the
rwsem code now directly uses atomic_long_add() and
atomic_long_add_return(), so we can remove the arch implementations of
rwsem_atomic_add() and rwsem_atomic_update().
Cc: Waiman Long <waiman.l...@hpe.com>
Cc: Heiko Carstens <heiko.carst...@de.ibm.com>
Cc: Jason Low <jason.l...@hp.com>
Cc: Richard Henderson <r...@twiddle.net>
Cc: Ingo Molnar <mi...@redhat.com>
Cc: Fenghua Yu <fenghua...@intel.com>
Cc: Andrew Morton <a...@linux-foundation.org>
Cc: Martin Schwidefsky <schwidef...@de.ibm.com>
Cc: Linus Torvalds <torva...@linux-foundation.org>
Cc: Tim Chen <tim.c.c...@linux.intel.com>
Cc: Christoph Lameter <c...@linux.com>
Cc: Thomas Gleixner <t...@linutronix.de>
Cc: Arnd Bergmann <a...@arndb.de>
Cc: Terry Rudd <terry.r...@hpe.com>
Cc: Peter Hurley <pe...@hurleysoftware.com>
Cc: Davidlohr Bueso <d...@stgolabs.net>
Acked-by: Davidlohr Bueso <d...@stgolabs.net>
Cc: Ivan Kokshaysky <i...@jurassic.park.msu.ru>
Cc: Tony Luck <tony.l...@intel.com>
Cc: Matt Turner <matts...@gmail.com>
Signed-off-by: Jason Low <jason.l...@hpe.com>
Signed-off-by: Peter Zijlstra (Intel) <pet...@infradead.org>
---
arch/alpha/include/asm/rwsem.h | 42 -----------------------------------------
arch/ia64/include/asm/rwsem.h | 7 ------
arch/s390/include/asm/rwsem.h | 37 ------------------------------------
arch/x86/include/asm/rwsem.h | 18 -----------------
include/asm-generic/rwsem.h | 16 ---------------
5 files changed, 120 deletions(-)
Nice. This, along with Michal's work getting rid of a lot of superfluous
implementations, have gotten rid of plenty of rwsem code in arch/*
Thanks,
Davidlohr