diff options
author | Alex Dowad <alexinbeijing@gmail.com> | 2015-03-13 14:04:18 -0400 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2015-03-31 01:50:51 -0400 |
commit | 18e1d1b115f79ab1f9137f2b4c72f87c218a5fb9 (patch) | |
tree | 3b5b4dda27602a4b51743ea450783c72f15bc8de /arch/arc/kernel | |
parent | e42391cd048809d903291d07f86ed3934ce138e9 (diff) |
arc: 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.
Signed-off-by: Alex Dowad <alexinbeijing@gmail.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/kernel')
-rw-r--r-- | arch/arc/kernel/process.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/arc/kernel/process.c b/arch/arc/kernel/process.c index 98c00a2d4dd9..7a8ea6ed2c5c 100644 --- a/arch/arc/kernel/process.c +++ b/arch/arc/kernel/process.c | |||
@@ -49,7 +49,10 @@ void arch_cpu_idle(void) | |||
49 | 49 | ||
50 | asmlinkage void ret_from_fork(void); | 50 | asmlinkage void ret_from_fork(void); |
51 | 51 | ||
52 | /* Layout of Child kernel mode stack as setup at the end of this function is | 52 | /* |
53 | * Copy architecture-specific thread state | ||
54 | * | ||
55 | * Layout of Child kernel mode stack as setup at the end of this function is | ||
53 | * | 56 | * |
54 | * | ... | | 57 | * | ... | |
55 | * | ... | | 58 | * | ... | |
@@ -81,7 +84,7 @@ asmlinkage void ret_from_fork(void); | |||
81 | * ------------------ <===== END of PAGE | 84 | * ------------------ <===== END of PAGE |
82 | */ | 85 | */ |
83 | int copy_thread(unsigned long clone_flags, | 86 | int copy_thread(unsigned long clone_flags, |
84 | unsigned long usp, unsigned long arg, | 87 | unsigned long usp, unsigned long kthread_arg, |
85 | struct task_struct *p) | 88 | struct task_struct *p) |
86 | { | 89 | { |
87 | struct pt_regs *c_regs; /* child's pt_regs */ | 90 | struct pt_regs *c_regs; /* child's pt_regs */ |
@@ -112,7 +115,7 @@ int copy_thread(unsigned long clone_flags, | |||
112 | if (unlikely(p->flags & PF_KTHREAD)) { | 115 | if (unlikely(p->flags & PF_KTHREAD)) { |
113 | memset(c_regs, 0, sizeof(struct pt_regs)); | 116 | memset(c_regs, 0, sizeof(struct pt_regs)); |
114 | 117 | ||
115 | c_callee->r13 = arg; /* argument to kernel thread */ | 118 | c_callee->r13 = kthread_arg; |
116 | c_callee->r14 = usp; /* function */ | 119 | c_callee->r14 = usp; /* function */ |
117 | 120 | ||
118 | return 0; | 121 | return 0; |