diff options
author | Alex Dowad <alexinbeijing@gmail.com> | 2015-03-13 14:04:17 -0400 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2015-05-26 13:01:49 -0400 |
commit | 9f7b2d1f02c5dae9c7fd59848681c88dc3741819 (patch) | |
tree | fa9194ff51dfcfb6ee9edd496cf63a63845d263e /arch | |
parent | 0bc25674a4a2ec32140e2f3f0b863cf87e566ad4 (diff) |
alpha: copy_thread(): rename 'arg' argument to 'kthread_arg'
The 'arg' argument to copy_thread() is only ever used when forking a new
kernel thread. Hence, rename it to 'kthread_arg' for clarity (and consistency
with do_fork() and other arch-specific implementations of copy_thread()).
Signed-off-by: Alex Dowad <alexinbeijing@gmail.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/alpha/kernel/process.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/alpha/kernel/process.c b/arch/alpha/kernel/process.c index 1941a07b5811..84d13263ce46 100644 --- a/arch/alpha/kernel/process.c +++ b/arch/alpha/kernel/process.c | |||
@@ -236,12 +236,11 @@ release_thread(struct task_struct *dead_task) | |||
236 | } | 236 | } |
237 | 237 | ||
238 | /* | 238 | /* |
239 | * Copy an alpha thread.. | 239 | * Copy architecture-specific thread state |
240 | */ | 240 | */ |
241 | |||
242 | int | 241 | int |
243 | copy_thread(unsigned long clone_flags, unsigned long usp, | 242 | copy_thread(unsigned long clone_flags, unsigned long usp, |
244 | unsigned long arg, | 243 | unsigned long kthread_arg, |
245 | struct task_struct *p) | 244 | struct task_struct *p) |
246 | { | 245 | { |
247 | extern void ret_from_fork(void); | 246 | extern void ret_from_fork(void); |
@@ -262,7 +261,7 @@ copy_thread(unsigned long clone_flags, unsigned long usp, | |||
262 | sizeof(struct switch_stack) + sizeof(struct pt_regs)); | 261 | sizeof(struct switch_stack) + sizeof(struct pt_regs)); |
263 | childstack->r26 = (unsigned long) ret_from_kernel_thread; | 262 | childstack->r26 = (unsigned long) ret_from_kernel_thread; |
264 | childstack->r9 = usp; /* function */ | 263 | childstack->r9 = usp; /* function */ |
265 | childstack->r10 = arg; | 264 | childstack->r10 = kthread_arg; |
266 | childregs->hae = alpha_mv.hae_cache, | 265 | childregs->hae = alpha_mv.hae_cache, |
267 | childti->pcb.usp = 0; | 266 | childti->pcb.usp = 0; |
268 | return 0; | 267 | return 0; |