diff options
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/include/asm/processor_32.h | 3 | ||||
-rw-r--r-- | arch/sh/include/asm/processor_64.h | 1 | ||||
-rw-r--r-- | arch/sh/kernel/process.c | 7 | ||||
-rw-r--r-- | arch/sh/kernel/process_32.c | 9 |
4 files changed, 7 insertions, 13 deletions
diff --git a/arch/sh/include/asm/processor_32.h b/arch/sh/include/asm/processor_32.h index 900f8d72ffe2..b6311fd2d066 100644 --- a/arch/sh/include/asm/processor_32.h +++ b/arch/sh/include/asm/processor_32.h | |||
@@ -126,9 +126,6 @@ extern void start_thread(struct pt_regs *regs, unsigned long new_pc, unsigned lo | |||
126 | /* Free all resources held by a thread. */ | 126 | /* Free all resources held by a thread. */ |
127 | extern void release_thread(struct task_struct *); | 127 | extern void release_thread(struct task_struct *); |
128 | 128 | ||
129 | /* Prepare to copy thread state - unlazy all lazy status */ | ||
130 | void prepare_to_copy(struct task_struct *tsk); | ||
131 | |||
132 | /* | 129 | /* |
133 | * create a kernel thread without removing it from tasklists | 130 | * create a kernel thread without removing it from tasklists |
134 | */ | 131 | */ |
diff --git a/arch/sh/include/asm/processor_64.h b/arch/sh/include/asm/processor_64.h index e25c4c7d6b63..fe99afecfbc5 100644 --- a/arch/sh/include/asm/processor_64.h +++ b/arch/sh/include/asm/processor_64.h | |||
@@ -172,7 +172,6 @@ extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags); | |||
172 | #define copy_segments(p, mm) do { } while (0) | 172 | #define copy_segments(p, mm) do { } while (0) |
173 | #define release_segments(mm) do { } while (0) | 173 | #define release_segments(mm) do { } while (0) |
174 | #define forget_segments() do { } while (0) | 174 | #define forget_segments() do { } while (0) |
175 | #define prepare_to_copy(tsk) do { } while (0) | ||
176 | /* | 175 | /* |
177 | * FPU lazy state save handling. | 176 | * FPU lazy state save handling. |
178 | */ | 177 | */ |
diff --git a/arch/sh/kernel/process.c b/arch/sh/kernel/process.c index 325f98b1736d..2bde59eae10d 100644 --- a/arch/sh/kernel/process.c +++ b/arch/sh/kernel/process.c | |||
@@ -6,8 +6,15 @@ | |||
6 | struct kmem_cache *task_xstate_cachep = NULL; | 6 | struct kmem_cache *task_xstate_cachep = NULL; |
7 | unsigned int xstate_size; | 7 | unsigned int xstate_size; |
8 | 8 | ||
9 | /* | ||
10 | * this gets called so that we can store lazy state into memory and copy the | ||
11 | * current task into the new thread. | ||
12 | */ | ||
9 | int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src) | 13 | int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src) |
10 | { | 14 | { |
15 | #ifdef CONFIG_SUPERH32 | ||
16 | unlazy_fpu(src, task_pt_regs(src)); | ||
17 | #endif | ||
11 | *dst = *src; | 18 | *dst = *src; |
12 | 19 | ||
13 | if (src->thread.xstate) { | 20 | if (src->thread.xstate) { |
diff --git a/arch/sh/kernel/process_32.c b/arch/sh/kernel/process_32.c index 94273aaf78c1..dee596113cc1 100644 --- a/arch/sh/kernel/process_32.c +++ b/arch/sh/kernel/process_32.c | |||
@@ -155,15 +155,6 @@ int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu) | |||
155 | } | 155 | } |
156 | EXPORT_SYMBOL(dump_fpu); | 156 | EXPORT_SYMBOL(dump_fpu); |
157 | 157 | ||
158 | /* | ||
159 | * This gets called before we allocate a new thread and copy | ||
160 | * the current task into it. | ||
161 | */ | ||
162 | void prepare_to_copy(struct task_struct *tsk) | ||
163 | { | ||
164 | unlazy_fpu(tsk, task_pt_regs(tsk)); | ||
165 | } | ||
166 | |||
167 | asmlinkage void ret_from_fork(void); | 158 | asmlinkage void ret_from_fork(void); |
168 | 159 | ||
169 | int copy_thread(unsigned long clone_flags, unsigned long usp, | 160 | int copy_thread(unsigned long clone_flags, unsigned long usp, |