diff options
author | Tiecheng Zhou <[email protected]> | 2020-04-02 16:49:36 +0800 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2020-04-03 17:22:44 -0400 |
commit | c5207876232649ca5e5ddd6f966d2da75ffded8f (patch) | |
tree | 46d666864379d25a9270becfe11e7d96d7cf083b /tools/perf/util/trace-event-scripting.c | |
parent | 4ee2bb22ddb53a2eafc675690d0d67452029ca37 (diff) |
drm/amd/powerplay: avoid using pm_en before it is initialized
hwmgr->pm_en is initialized at hwmgr_hw_init.
during amdgpu_device_init, there is amdgpu_asic_reset that calls to
pp_get_asic_baco_capability, while hwmgr->pm_en has not yet been initialized.
so avoid using pm_en in pp_get_asic_baco_capability.
Reviewed-by: Emily Deng <[email protected]>
Signed-off-by: Tiecheng Zhou <[email protected]>
Signed-off-by: Yintian Tao <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions