* [PATCH 24/32] s390: copy_thread(): rename 'arg' argument to 'kthread_arg'
[not found] <1426270496-26362-1-git-send-email-alexinbeijing@gmail.com>
@ 2015-03-13 18:14 ` Alex Dowad
0 siblings, 0 replies; only message in thread
From: Alex Dowad @ 2015-03-13 18:14 UTC (permalink / raw)
To: linux-kernel
Cc: Martin Schwidefsky, Heiko Carstens, supporter:S390,
Hendrik Brueckner, open list:S390
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>
---
arch/s390/kernel/process.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/arch/s390/kernel/process.c b/arch/s390/kernel/process.c
index 13fc097..a1ca7cf 100644
--- a/arch/s390/kernel/process.c
+++ b/arch/s390/kernel/process.c
@@ -87,8 +87,11 @@ void arch_release_task_struct(struct task_struct *tsk)
}
#endif
+/*
+ * Copy architecture-specific thread state
+ */
int copy_thread(unsigned long clone_flags, unsigned long new_stackp,
- unsigned long arg, struct task_struct *p)
+ unsigned long kthread_arg, struct task_struct *p)
{
struct thread_info *ti;
struct fake_frame
@@ -127,12 +130,14 @@ int copy_thread(unsigned long clone_flags, unsigned long new_stackp,
frame->childregs.psw.addr = PSW_ADDR_AMODE |
(unsigned long) kernel_thread_starter;
frame->childregs.gprs[9] = new_stackp; /* function */
- frame->childregs.gprs[10] = arg;
+ frame->childregs.gprs[10] = kthread_arg;
frame->childregs.gprs[11] = (unsigned long) do_exit;
frame->childregs.orig_gpr2 = -1;
return 0;
}
+
+ /* user thread */
frame->childregs = *current_pt_regs();
frame->childregs.gprs[2] = 0; /* child returns 0 on fork. */
frame->childregs.flags = 0;
--
2.0.0.GIT
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-03-13 18:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1426270496-26362-1-git-send-email-alexinbeijing@gmail.com>
2015-03-13 18:14 ` [PATCH 24/32] s390: copy_thread(): rename 'arg' argument to 'kthread_arg' Alex Dowad
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox