diff options
Diffstat (limited to 'include/asm-mips/system.h')
-rw-r--r-- | include/asm-mips/system.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/asm-mips/system.h b/include/asm-mips/system.h index 6663efd49b27..cd3a6bca7abd 100644 --- a/include/asm-mips/system.h +++ b/include/asm-mips/system.h | |||
@@ -17,6 +17,7 @@ | |||
17 | 17 | ||
18 | #include <asm/addrspace.h> | 18 | #include <asm/addrspace.h> |
19 | #include <asm/cpu-features.h> | 19 | #include <asm/cpu-features.h> |
20 | #include <asm/dsp.h> | ||
20 | #include <asm/ptrace.h> | 21 | #include <asm/ptrace.h> |
21 | #include <asm/war.h> | 22 | #include <asm/war.h> |
22 | #include <asm/interrupt.h> | 23 | #include <asm/interrupt.h> |
@@ -154,9 +155,13 @@ extern asmlinkage void *resume(void *last, void *next, void *next_ti); | |||
154 | 155 | ||
155 | struct task_struct; | 156 | struct task_struct; |
156 | 157 | ||
157 | #define switch_to(prev,next,last) \ | 158 | #define switch_to(prev,next,last) \ |
158 | do { \ | 159 | do { \ |
159 | (last) = resume(prev, next, next->thread_info); \ | 160 | if (cpu_has_dsp) \ |
161 | __save_dsp(prev); \ | ||
162 | (last) = resume(prev, next, next->thread_info); \ | ||
163 | if (cpu_has_dsp) \ | ||
164 | __restore_dsp(current); \ | ||
160 | } while(0) | 165 | } while(0) |
161 | 166 | ||
162 | #define ROT_IN_PIECES \ | 167 | #define ROT_IN_PIECES \ |