Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3c915bdc authored by Martin Schwidefsky's avatar Martin Schwidefsky
Browse files

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: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent e69ca822
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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 */