On Tue, 17 May 2016, Peter Zijlstra wrote:
Subject: locking,rwsem: Remove rwsem_atomic_add() and rwsem_atomic_update()
From: Jason Low <[email protected]>
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 <[email protected]>
Cc: Heiko Carstens <[email protected]>
Cc: Jason Low <[email protected]>
Cc: Richard Henderson <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Fenghua Yu <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Tim Chen <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Terry Rudd <[email protected]>
Cc: Peter Hurley <[email protected]>
Cc: Davidlohr Bueso <[email protected]>
Acked-by: Davidlohr Bueso <[email protected]>
Cc: Ivan Kokshaysky <[email protected]>
Cc: Tony Luck <[email protected]>
Cc: Matt Turner <[email protected]>
Signed-off-by: Jason Low <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
---
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