diff options
Diffstat (limited to 'kernel/cgroup/stat.c')
| -rw-r--r-- | kernel/cgroup/stat.c | 8 | 
1 files changed, 6 insertions, 2 deletions
diff --git a/kernel/cgroup/stat.c b/kernel/cgroup/stat.c index 133b465691d6..1e111dd455c4 100644 --- a/kernel/cgroup/stat.c +++ b/kernel/cgroup/stat.c @@ -296,8 +296,12 @@ int cgroup_stat_init(struct cgroup *cgrp)  	}  	/* ->updated_children list is self terminated */ -	for_each_possible_cpu(cpu) -		cgroup_cpu_stat(cgrp, cpu)->updated_children = cgrp; +	for_each_possible_cpu(cpu) { +		struct cgroup_cpu_stat *cstat = cgroup_cpu_stat(cgrp, cpu); + +		cstat->updated_children = cgrp; +		u64_stats_init(&cstat->sync); +	}  	prev_cputime_init(&cgrp->stat.prev_cputime);  |