diff options
author | Rob Clark <robdclark@gmail.com> | 2017-02-10 22:52:40 +0300 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2017-04-08 13:59:31 +0300 |
commit | c3c3ab199bdd5b39f0a16545f4205e20c03ba20f (patch) | |
tree | b343bdd6714ad83819ea14dba2108a24e510e4d6 /drivers/gpu/drm/msm/msm_debugfs.c | |
parent | 0168778115687486575a6831df865dbc4f5369fe (diff) | |
download | linux-c3c3ab199bdd5b39f0a16545f4205e20c03ba20f.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_debugfs.c')
-rw-r--r-- | drivers/gpu/drm/msm/msm_debugfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_debugfs.c b/drivers/gpu/drm/msm/msm_debugfs.c index 4f35d4eb85d0..89b3b79f92c8 100644 --- a/drivers/gpu/drm/msm/msm_debugfs.c +++ b/drivers/gpu/drm/msm/msm_debugfs.c @@ -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; |