diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2017-03-01 11:18:34 +0300 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2017-03-01 11:59:27 +0300 |
commit | 3c915bdc1775acfa214195da1ffb39dabdd1a389 (patch) | |
tree | eda4dbe8f4b044ffc11f26c9ad309941d6eb10ab | |
parent | e69ca822ce0ed3ba006ce384d7d205c81d92373f (diff) | |
download | linux-3c915bdc1775acfa214195da1ffb39dabdd1a389.tar.xz |
s390/cputime: reset all accounting fields on fork
copy_thread has to reset all cputime related field in the task struct,
not only user_timer and system_timer.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r-- | arch/s390/kernel/process.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/s390/kernel/process.c b/arch/s390/kernel/process.c index 54281660582c..249deafaa6ee 100644 --- a/arch/s390/kernel/process.c +++ b/arch/s390/kernel/process.c @@ -121,7 +121,10 @@ int copy_thread_tls(unsigned long clone_flags, unsigned long new_stackp, clear_tsk_thread_flag(p, TIF_SINGLE_STEP); /* Initialize per thread user and system timer values */ p->thread.user_timer = 0; + p->thread.guest_timer = 0; p->thread.system_timer = 0; + p->thread.hardirq_timer = 0; + p->thread.softirq_timer = 0; frame->sf.back_chain = 0; /* new return point is ret_from_fork */ |