Skip to content

Commit

Permalink
sh: Convert to generic bitops for IRQ-toggling implementation.
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Dec 22, 2008
1 parent 709420d commit 16b529d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 95 deletions.
3 changes: 3 additions & 0 deletions arch/sh/include/asm/bitops-grb.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,7 @@ static inline int test_and_change_bit(int nr, volatile void * addr)

return retval;
}

#include <asm-generic/bitops/non-atomic.h>

#endif /* __ASM_SH_BITOPS_GRB_H */
91 changes: 0 additions & 91 deletions arch/sh/include/asm/bitops-irq.h

This file was deleted.

2 changes: 2 additions & 0 deletions arch/sh/include/asm/bitops-llsc.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,6 @@ static inline int test_and_change_bit(int nr, volatile void * addr)
return retval != 0;
}

#include <asm-generic/bitops/non-atomic.h>

#endif /* __ASM_SH_BITOPS_LLSC_H */
6 changes: 2 additions & 4 deletions arch/sh/include/asm/bitops.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,16 @@
#elif defined(CONFIG_CPU_SH4A)
#include <asm/bitops-llsc.h>
#else
#include <asm/bitops-irq.h>
#include <asm-generic/bitops/atomic.h>
#include <asm-generic/bitops/non-atomic.h>
#endif


/*
* clear_bit() doesn't provide any barrier for the compiler.
*/
#define smp_mb__before_clear_bit() barrier()
#define smp_mb__after_clear_bit() barrier()

#include <asm-generic/bitops/non-atomic.h>

#ifdef CONFIG_SUPERH32
static inline unsigned long ffz(unsigned long word)
{
Expand Down

0 comments on commit 16b529d

Please sign in to comment.