Skip to content

Commit

Permalink
[PATCH] powerpc: Merge asm-ppc*/rwsem.h
Browse files Browse the repository at this point in the history
Merge asm-ppc*/rwsem.h into include/asm-powerpc.
Removed smp_*mb() memory barriers from the ppc32 code
as they are now burried in the atomic_*() functions as
suggested by Paul, implemented by Arnd, and pushed out
by Becky.  I am not the droid you are looking for.

This patch depends on Becky's atomic.h merge patch.

Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Jon Loeliger authored and Paul Mackerras committed Sep 25, 2005
1 parent feaf7cf commit 342e73b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 183 deletions.
18 changes: 7 additions & 11 deletions include/asm-ppc64/rwsem.h → include/asm-powerpc/rwsem.h
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
#ifndef _ASM_POWERPC_RWSEM_H
#define _ASM_POWERPC_RWSEM_H

#ifdef __KERNEL__

/*
* include/asm-ppc64/rwsem.h: R/W semaphores for PPC using the stuff
* in lib/rwsem.c. Adapted largely from include/asm-i386/rwsem.h
* by Paul Mackerras <paulus@samba.org>.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/

#ifndef _PPC64_RWSEM_H
#define _PPC64_RWSEM_H

#ifdef __KERNEL__
#include <linux/list.h>
#include <linux/spinlock.h>
#include <asm/atomic.h>
Expand Down Expand Up @@ -163,5 +159,5 @@ static inline int rwsem_atomic_update(int delta, struct rw_semaphore *sem)
return atomic_add_return(delta, (atomic_t *)(&sem->count));
}

#endif /* __KERNEL__ */
#endif /* _PPC_RWSEM_XADD_H */
#endif /* __KERNEL__ */
#endif /* _ASM_POWERPC_RWSEM_H */
172 changes: 0 additions & 172 deletions include/asm-ppc/rwsem.h

This file was deleted.

0 comments on commit 342e73b

Please sign in to comment.