]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
s390/cputime: reset all accounting fields on fork
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 1 Mar 2017 08:18:34 +0000 (09:18 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 1 Mar 2017 08:59:27 +0000 (09:59 +0100)
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>
arch/s390/kernel/process.c

index 54281660582cb1d70f49ac432afe3a8af3d6e5ef..249deafaa6ee8fa9c87b8db3a2372515135991e0 100644 (file)
@@ -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 */