cputime: Consolidate cputime adjustment code
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / kernel / fork.c
index 8b20ab7d3aa2951eff91a4e09e0af23a90992747..0e7cdb90476fc0206d3cee099926b231fb641ead 100644 (file)
@@ -1222,7 +1222,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
        p->utime = p->stime = p->gtime = 0;
        p->utimescaled = p->stimescaled = 0;
 #ifndef CONFIG_VIRT_CPU_ACCOUNTING
-       p->prev_utime = p->prev_stime = 0;
+       p->prev_cputime.utime = p->prev_cputime.stime = 0;
 #endif
 #if defined(SPLIT_RSS_COUNTING)
        memset(&p->rss_stat, 0, sizeof(p->rss_stat));