diff options
Diffstat (limited to 'arch/xtensa/kernel/process.c')
-rw-r--r-- | arch/xtensa/kernel/process.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/xtensa/kernel/process.c b/arch/xtensa/kernel/process.c index 6a2d6edf8f72..9b306e550e3f 100644 --- a/arch/xtensa/kernel/process.c +++ b/arch/xtensa/kernel/process.c | |||
@@ -140,13 +140,16 @@ void flush_thread(void) | |||
140 | } | 140 | } |
141 | 141 | ||
142 | /* | 142 | /* |
143 | * This is called before the thread is copied. | 143 | * this gets called so that we can store coprocessor state into memory and |
144 | * copy the current task into the new thread. | ||
144 | */ | 145 | */ |
145 | void prepare_to_copy(struct task_struct *tsk) | 146 | int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src) |
146 | { | 147 | { |
147 | #if XTENSA_HAVE_COPROCESSORS | 148 | #if XTENSA_HAVE_COPROCESSORS |
148 | coprocessor_flush_all(task_thread_info(tsk)); | 149 | coprocessor_flush_all(task_thread_info(src)); |
149 | #endif | 150 | #endif |
151 | *dst = *src; | ||
152 | return 0; | ||
150 | } | 153 | } |
151 | 154 | ||
152 | /* | 155 | /* |