ANDROID: uid_sys_stats: Replace tasklist lock with RCU in uid_cputime_show
authorPavankumar Kondeti <pkondeti@codeaurora.org>
Wed, 21 Jun 2017 03:52:45 +0000 (09:22 +0530)
committerTodd Kjos <tkjos@google.com>
Tue, 10 Apr 2018 17:56:50 +0000 (17:56 +0000)
commit71184089b8ce5e46cc5377962e04f885b86e9cbd
tree71cbec1a4ac3a4bafa0f87e73e1352545722fd39
parenteba1ffe631bc5e379ebce8342c287c47f4549c16
ANDROID: uid_sys_stats: Replace tasklist lock with RCU in uid_cputime_show

Tasklist lock is acuquired in uid_cputime_show for updating the stats
for all tasks in the system. This can potentially disable preemption
for several milli seconds. Replace tasklist_lock with RCU read side
primitives.

Change-Id: Ife69cb577bfdceaae6eb21b9bda09a0fe687e140
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
drivers/misc/uid_sys_stats.c