forked from AEXmod/platform_kernel_xiaomi_msm8996
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ANDROID: cpufreq_stats: Fix task time in state locking
The task->time_in_state pointer is written to at task creation and exiting, protection is needed for concurrent reads e.g. during sysfs accesses. Added spin lock such that the task's time_in_state pointer used is set to either allocated memory or null. Bug: 38463235 Test: Torture concurrent sysfs reads with short lived tasks Signed-off-by: Andres Oportus <[email protected]> Change-Id: Iaa6402bf50a33489506f2170e4dfabe535d79e15 Signed-off-by: DennySPB <[email protected]>
- Loading branch information
1 parent
4fa11e6
commit c270dc2
Showing
1 changed file
with
51 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters