forked from LineageOS/android_kernel_sony_sdm845
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PM/devfreq: Do not switch governors from sysfs when device is suspended
There is a possibility to switch the governors from sysfs even when the device is in suspended state. This can cause a NOC error at times when trying to access the device's monitor registers in a suspended state. This change fixes this issue. Introduce a variable dev_suspended to know if the device is in suspended state or not. Check if the device is suspended before switching the governor from sysfs. Change-Id: I15055aa51daa35272be4667e5bafb8ccd7933098 Signed-off-by: Rama Aparna Mallavarapu <aparnam@codeaurora.org>
- Loading branch information
1 parent
9796cbd
commit 989ed3f
Showing
2 changed files
with
18 additions
and
4 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
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