diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2020-07-24 23:14:19 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-07-26 23:34:26 +1000 |
commit | 12d0b9d6c843e7dbe739ebefcf16c7e4a45e4e78 (patch) | |
tree | df0f4dc6a39632d01522fd253bc819cb261965f2 /arch/powerpc/include/asm/spinlock_types.h | |
parent | 20d444d06f97504d165b08558678b4737dcefb02 (diff) |
powerpc: Move spinlock implementation to simple_spinlock
To prepare for queued spinlocks. This is a simple rename except to
update preprocessor guard name and a file reference.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Acked-by: Waiman Long <longman@redhat.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200724131423.1362108-3-npiggin@gmail.com
Diffstat (limited to 'arch/powerpc/include/asm/spinlock_types.h')
-rw-r--r-- | arch/powerpc/include/asm/spinlock_types.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/arch/powerpc/include/asm/spinlock_types.h b/arch/powerpc/include/asm/spinlock_types.h index 87adaf13b7e8..3906f52dae65 100644 --- a/arch/powerpc/include/asm/spinlock_types.h +++ b/arch/powerpc/include/asm/spinlock_types.h @@ -6,16 +6,6 @@ # error "please don't include this file directly" #endif -typedef struct { - volatile unsigned int slock; -} arch_spinlock_t; - -#define __ARCH_SPIN_LOCK_UNLOCKED { 0 } - -typedef struct { - volatile signed int lock; -} arch_rwlock_t; - -#define __ARCH_RW_LOCK_UNLOCKED { 0 } +#include <asm/simple_spinlock_types.h> #endif |