Skip to content

Commit 3c915bd

Browse files
author
Martin Schwidefsky
committed
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 <[email protected]>
1 parent e69ca82 commit 3c915bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/s390/kernel/process.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,10 @@ int copy_thread_tls(unsigned long clone_flags, unsigned long new_stackp,
121121
clear_tsk_thread_flag(p, TIF_SINGLE_STEP);
122122
/* Initialize per thread user and system timer values */
123123
p->thread.user_timer = 0;
124+
p->thread.guest_timer = 0;
124125
p->thread.system_timer = 0;
126+
p->thread.hardirq_timer = 0;
127+
p->thread.softirq_timer = 0;
125128

126129
frame->sf.back_chain = 0;
127130
/* new return point is ret_from_fork */

0 commit comments

Comments
 (0)