aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2018-06-27 09:03:51 +0200
committerTakashi Iwai <[email protected]>2018-06-28 00:02:59 +0200
commitfeb20faec73ba0b30f949d54c4153cf0ad3807c8 (patch)
treea08d7c490354e90352bbec2fe863132e9fe002b2 /tools/perf/scripts/python
parentc288248f5b26cd5563112fcdc077bf44964a942d (diff)
ALSA: hda - Move in_pm accessors to HDA core
The in_pm atomic in hdac_device is an important field used as a flag as well as a refcount for PM. The existing snd_hdac_power_up/down helpers already refer to it in the HD-audio core code, while the code to actually setting the value (atomic_inc() / _dec()) is open-coded in HDA legacy side, which is hard to find. This patch adds the helper functions to set/reset the in_pm counter to HDA core and use them in HDA legacy side, for making it clearer who / where the PM is managed. There is no functional changes, just code refactoring. Reviewed-by: Chris Wilson <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions