Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162841
b: refs/heads/master
c: f4c6b6b
h: refs/heads/master
i:
  162839: b322d70
v: v3
  • Loading branch information
Ralf Baechle committed Sep 17, 2009
1 parent f3638c4 commit 0180581
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6eb10bc9e2deab06630261cd05c4cb1e9a60e980
refs/heads/master: f4c6b6bc5a4fc8d607f2d89369008c85a3a12a8b
12 changes: 12 additions & 0 deletions trunk/arch/mips/include/asm/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,23 @@ 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; \
} while (0)
#endif

#define switch_to(prev, next, last) \
do { \
__mips_mt_fpaff_switch_to(prev); \
if (cpu_has_dsp) \
__save_dsp(prev); \
__clear_software_ll_bit(); \
(last) = resume(prev, next, task_thread_info(next)); \
} while (0)

Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/mips/kernel/octeon_switch.S
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
.align 7
LEAF(resume)
.set arch=octeon
#ifndef CONFIG_CPU_HAS_LLSC
sw zero, ll_bit
#endif
mfc0 t1, CP0_STATUS
LONG_S t1, THREAD_STATUS(a0)
cpu_save_nonscratch a0
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/mips/kernel/r2300_switch.S
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@
* struct thread_info *next_ti) )
*/
LEAF(resume)
#ifndef CONFIG_CPU_HAS_LLSC
sw zero, ll_bit
#endif
mfc0 t1, CP0_STATUS
sw t1, THREAD_STATUS(a0)
cpu_save_nonscratch a0
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/mips/kernel/r4k_switch.S
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@
*/
.align 5
LEAF(resume)
#ifndef CONFIG_CPU_HAS_LLSC
sw zero, ll_bit
#endif
mfc0 t1, CP0_STATUS
LONG_S t1, THREAD_STATUS(a0)
cpu_save_nonscratch a0
Expand Down

0 comments on commit 0180581

Please sign in to comment.