uid_cputime: Avoids double accounting of process stime, utime and cpu_power in task...
authorRuchi Kandoi <kandoiruchi@google.com>
Fri, 26 Jun 2015 21:19:21 +0000 (14:19 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:53:53 +0000 (13:53 -0800)
commit2244d3438eb6d1263697849050eea08a7f3ee027
tree2e96e580bb0628d7397efff25719eb5eedc3f60d
parent82df5f280caef251feb321cb92f5c7bdcd0eb832
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>
drivers/misc/uid_cputime.c