Skip to content

Commit

Permalink
[PATCH] powerpc: merge semaphore.h
Browse files Browse the repository at this point in the history
powerpc: Merge semaphore.h

Adopted the ppc64 version of semaphore.h.  The 32-bit version used
smp_wmb(), but recent updates to atomic.h mean this is no longer required.
The 64-bit version made use of unlikely(), which has been retained in the
combined version.

This patch requires the recent atomic.h patch.

Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Becky Bruce authored and Paul Mackerras committed Sep 25, 2005
1 parent 342e73b commit d6a4c84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 114 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _PPC64_SEMAPHORE_H
#define _PPC64_SEMAPHORE_H
#ifndef _ASM_POWERPC_SEMAPHORE_H
#define _ASM_POWERPC_SEMAPHORE_H

/*
* Remove spinlock-based RW semaphores; RW semaphore definitions are
Expand Down Expand Up @@ -95,4 +95,4 @@ static inline void up(struct semaphore * sem)

#endif /* __KERNEL__ */

#endif /* !(_PPC64_SEMAPHORE_H) */
#endif /* _ASM_POWERPC_SEMAPHORE_H */
111 changes: 0 additions & 111 deletions include/asm-ppc/semaphore.h

This file was deleted.

0 comments on commit d6a4c84

Please sign in to comment.