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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user