drm: Switch to use DEVFREQ_GOV_SIMPLE_ONDEMAND constant
Subsystems (6)
DRM drivers DRM misc Arm Qualcomm mailing list DRM driver for Qualcomm display hardware +2 more subsystems
PATCH 1/1 drm: Switch to use DEVFREQ_GOV_SIMPLE_ONDEMAND constant
From: Yue Hu <[email protected]>
Since governor name is defined by DEVFREQ framework internally, use the macro definition instead of using the name directly.
Signed-off-by Yue Hu <[email protected]>
--- drivers/gpu/drm/msm/msm_gpu.c | 3 ++- drivers/gpu/drm/panfrost/panfrost_devfreq.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/msm/msm_gpu.c +2 -1
@@ -95,7 +95,8 @@ static void msm_devfreq_init(struct msm_gpu *gpu)*/ gpu->devfreq.devfreq =devm_devfreq_add_device (&gpu->pdev->dev, - &msm_devfreq_profile,"simple_ondemand" ,NULL ); + &msm_devfreq_profile,DEVFREQ_GOV_SIMPLE_ONDEMAND , +NULL );if (IS_ERR (gpu->devfreq.devfreq)) {DRM_DEV_ERROR (&gpu->pdev->dev,"Couldn't initialize GPU devfreq\n" );
drivers/gpu/drm/panfrost/panfrost_devfreq.c +2 -1
@@ -157,7 +157,8 @@ int panfrost_devfreq_init(struct panfrost_device *pfdev)dev_pm_opp_put (opp); pfdev->devfreq.devfreq =devm_devfreq_add_device (&pfdev->pdev->dev, - &panfrost_devfreq_profile,"simple_ondemand" ,NULL ); + &panfrost_devfreq_profile,DEVFREQ_GOV_SIMPLE_ONDEMAND , +NULL );if (IS_ERR (pfdev->devfreq.devfreq)) {DRM_DEV_ERROR (&pfdev->pdev->dev,"Couldn't initialize GPU devfreq\n" ); ret =PTR_ERR (pfdev->devfreq.devfreq);
Signature · 6 lines
1.9.1 _______________________________________________ Freedreno mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/freedreno