Skip to content

Commit

Permalink
MIPS: Rewrite clearing of ll_bit on context switch in C
Browse files Browse the repository at this point in the history
This also means there is now only one implementation not 3 left.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Sep 17, 2009
1 parent f1e39a4 commit 43e6ae6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions arch/mips/include/asm/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,11 @@ do { \
#define __mips_mt_fpaff_switch_to(prev) do { (void) (prev); } while (0)
#endif

#ifdef CONFIG_CPU_HAS_LLSC
#define __clear_software_ll_bit() do { } while (0)
#else
extern unsigned long ll_bit;

#define __clear_software_ll_bit() \
do { \
ll_bit = 0; \
if (!__builtin_constant_p(cpu_has_llsc) || !cpu_has_llsc) \
ll_bit = 0; \
} while (0)
#endif

#define switch_to(prev, next, last) \
do { \
Expand Down

0 comments on commit 43e6ae6

Please sign in to comment.