msm: kgsl: Use booleans for power control features
Currently we use a bitmask for the power control features (SPTP, ACD, LM,
etc).  Move to individual booleans for each feature instead. Booleans
are less unweidly to use and require less if () statements.
Additionally if we properly use the Adreno feature flags when setting
and/or modifying the booleans we can get rid of the feature flag checks in
the rest of the code and use the control booleans as they are intended.
And finally, move some of the target specific control features to the
target specific code. This ensures that the target specific code can
control the feature and the other targets don't accidentally specify
the wrong state through sysfs. For example, if SPTP power collapse is
only available for a5xx then the sysfs file should only ever return
false for the other targets.
Change-Id: Ic0dedbad1828ae9163a1a1357828156cb3281914
Signed-off-by:  Jordan Crouse <jcrouse@codeaurora.org>
Jordan Crouse <jcrouse@codeaurora.org>
Loading
Please register or sign in to comment
