uid_cputime: Avoids double accounting of process stime, utime and cpu_power in
authorRuchi Kandoi <kandoiruchi@google.com>
Fri, 26 Jun 2015 21:19:21 +0000 (14:19 -0700)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 27 Oct 2015 08:27:50 +0000 (16:27 +0800)
commit9092bf1d95ab080d3dd0d0974f2e8af28a960a6e
tree0f1aab3932bcb2583ef793340203243a236ad968
parent04e3d2769610e380ae60ca772f891f48f8aa114f
uid_cputime: Avoids double accounting of process stime, utime and cpu_power in
task exit.

This avoids the race where a particular process is terminating and we
read the show_uid_stats. At this time since the task_struct still exists
and we will account for the terminating process as one of the active
task, where as the stats would have been added in the task exit
callback.

Bug: 22064385
Change-Id: Id2ae04b33fcd230eda9683a41b6019d4dd8f5d85
Signed-off-by: Jin Qian <jinqian@google.com>
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
(cherry picked from commit ddd9aac59e0aea3d5a4df485173115e8ecb3e17d)
drivers/misc/uid_cputime.c