[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170724133540.32200-3-ricardo.ribalda@gmail.com>
Date: Mon, 24 Jul 2017 15:35:28 +0200
From: Ricardo Ribalda Delgado <ricardo.ribalda@...il.com>
To: Alex Deucher <alexander.deucher@....com>,
Christian König <christian.koenig@....com>,
David Airlie <airlied@...ux.ie>, Rex Zhu <Rex.Zhu@....com>,
Tom St Denis <tom.stdenis@....com>,
Eric Huang <JinHuiEric.Huang@....com>,
Huang Rui <ray.huang@....com>,
Dan Carpenter <dan.carpenter@...cle.com>,
"Edward O'Callaghan" <funfunctor@...klore1984.net>,
Kees Cook <keescook@...omium.org>,
"Andrew F. Davis" <afd@...com>,
Hawking Zhang <Hawking.Zhang@....com>,
Baoyou Xie <baoyou.xie@...aro.org>,
Masahiro Yamada <yamada.masahiro@...ionext.com>,
Colin Ian King <colin.king@...onical.com>,
Nils Wallménius <nils.wallmenius@...il.com>,
Joe Perches <joe@...ches.com>, amd-gfx@...ts.freedesktop.org,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Cc: Ricardo Ribalda Delgado <ricardo.ribalda@...il.com>
Subject: [PATCH 02/14] amdgpu: powerplay: Remove unused function
phm_store_dal_configuration_data is not used anymore.
Remove also reference on comments to the function
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@...il.com>
---
.../gpu/drm/amd/powerplay/eventmgr/eventtasks.c | 1 -
.../gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 25 ----------------------
.../gpu/drm/amd/powerplay/inc/hardwaremanager.h | 3 ---
3 files changed, 29 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/eventmgr/eventtasks.c b/drivers/gpu/drm/amd/powerplay/eventmgr/eventtasks.c
index 8c4ebaae1e0c..eeb155036c40 100644
--- a/drivers/gpu/drm/amd/powerplay/eventmgr/eventtasks.c
+++ b/drivers/gpu/drm/amd/powerplay/eventmgr/eventtasks.c
@@ -193,7 +193,6 @@ int pem_task_store_dal_configuration(struct pp_eventmgr *eventmgr, const struct
{
/* TODO */
return 0;
- /*phm_store_dal_configuration_data(eventmgr->hwmgr, display_config) */
}
int pem_task_notify_hw_mgr_display_configuration_change(struct pp_eventmgr *eventmgr, struct pem_event_data *event_data)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c b/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
index fcc722ea7649..c747fbd34073 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
@@ -320,31 +320,6 @@ int phm_check_states_equal(struct pp_hwmgr *hwmgr,
return hwmgr->hwmgr_func->check_states_equal(hwmgr, pstate1, pstate2, equal);
}
-int phm_store_dal_configuration_data(struct pp_hwmgr *hwmgr,
- const struct amd_pp_display_configuration *display_config)
-{
- PHM_FUNC_CHECK(hwmgr);
-
- if (display_config == NULL)
- return -EINVAL;
-
- hwmgr->display_config = *display_config;
-
- if (hwmgr->hwmgr_func->store_cc6_data == NULL)
- return -EINVAL;
-
- /* TODO: pass other display configuration in the future */
-
- if (hwmgr->hwmgr_func->store_cc6_data)
- hwmgr->hwmgr_func->store_cc6_data(hwmgr,
- display_config->cpu_pstate_separation_time,
- display_config->cpu_cc6_disable,
- display_config->cpu_pstate_disable,
- display_config->nb_pstate_switch_disable);
-
- return 0;
-}
-
int phm_get_dal_power_level(struct pp_hwmgr *hwmgr,
struct amd_pp_simple_clock_info *info)
{
diff --git a/drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h b/drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h
index a1ebe1014492..ebddcdce323c 100644
--- a/drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h
+++ b/drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h
@@ -397,9 +397,6 @@ extern int phm_check_states_equal(struct pp_hwmgr *hwmgr,
const struct pp_hw_power_state *pstate2,
bool *equal);
-extern int phm_store_dal_configuration_data(struct pp_hwmgr *hwmgr,
- const struct amd_pp_display_configuration *display_config);
-
extern int phm_get_dal_power_level(struct pp_hwmgr *hwmgr,
struct amd_pp_simple_clock_info *info);
--
2.13.2
Powered by blists - more mailing lists