]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - kernel/fork.c
sched/cputime, powerpc, s390: Make scaled cputime arch specific
[mirror_ubuntu-bionic-kernel.git] / kernel / fork.c
index 997ac1d584f76b0e42551975bdae960e61c0807e..600e93b5e539367b1948ec76b3016cf8749ffadb 100644 (file)
@@ -1551,7 +1551,9 @@ static __latent_entropy struct task_struct *copy_process(
        init_sigpending(&p->pending);
 
        p->utime = p->stime = p->gtime = 0;
+#ifdef CONFIG_ARCH_HAS_SCALED_CPUTIME
        p->utimescaled = p->stimescaled = 0;
+#endif
        prev_cputime_init(&p->prev_cputime);
 
 #ifdef CONFIG_VIRT_CPU_ACCOUNTING_GEN