drm/msm/gpu: move suspend/resume into debugfs->show

Each of the per-generation callbacks was doing this.  Lets just simplify
and move it into toplevel show() fxn.

Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
Rob Clark
2017-02-10 14:52:40 -05:00
parent 0168778115
commit c3c3ab199b
5 changed files with 2 additions and 14 deletions

View File

@@ -28,7 +28,9 @@ static int msm_gpu_show(struct drm_device *dev, struct seq_file *m)
if (gpu) {
seq_printf(m, "%s Status:\n", gpu->name);
gpu->funcs->pm_resume(gpu);
gpu->funcs->show(gpu, m);
gpu->funcs->pm_suspend(gpu);
}
return 0;