Skip to contentSkip to conversation

drm/amd/pp: Refine code abbreviate variable name

PATCH In review Rex Zhu 2 participants 2 messages Jan 16, 2018 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Rex Zhu

author
#0 lore raw

PATCH 1/1 drm/amd/pp: Refine code abbreviate variable name

abbreviate variable name number_of_performance_levels to num_of_pl in struct phm_odn_clock_levels

Change-Id I132c59dfd28933c4f6eba74fa53ffd0d014ec354
---
 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c  | 8 ++++----
 drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +4 -4
index d646b27b..fadbc8a 100644
@@ -1386,8 +1386,8 @@ static int vega10_setup_default_dpm_tables(struct pp_hwmgr *hwmgr)
 
 	if (PP_CAP(PHM_PlatformCaps_ODNinACSupport) ||
 	    PP_CAP(PHM_PlatformCaps_ODNinDCSupport)) {
-		data->odn_dpm_table.odn_core_clock_dpm_levels.
-		number_of_performance_levels = data->dpm_table.gfx_table.count;
+		data->odn_dpm_table.odn_core_clock_dpm_levels.num_of_pl =
+						data->dpm_table.gfx_table.count;
 		for (i = 0; i < data->dpm_table.gfx_table.count; i++) {
 			data->odn_dpm_table.odn_core_clock_dpm_levels.entries[i].clock =
 					data->dpm_table.gfx_table.dpm_levels[i].value;
@@ -1407,8 +1407,8 @@ static int vega10_setup_default_dpm_tables(struct pp_hwmgr *hwmgr)
 					dep_gfx_table->entries[i].cks_voffset;
 		}
 
-		data->odn_dpm_table.odn_memory_clock_dpm_levels.
-		number_of_performance_levels = data->dpm_table.mem_table.count;
+		data->odn_dpm_table.odn_memory_clock_dpm_levels.num_of_pl =
+						data->dpm_table.mem_table.count;
 		for (i = 0; i < data->dpm_table.mem_table.count; i++) {
 			data->odn_dpm_table.odn_memory_clock_dpm_levels.entries[i].clock =
 					data->dpm_table.mem_table.dpm_levels[i].value;
drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h +2 -2
index 933aa44..d6772a8 100644
@@ -368,8 +368,8 @@ struct phm_odn_clock_levels {
 	uint32_t size;
 	uint32_t options;
 	uint32_t flags;
-	uint32_t number_of_performance_levels;
-	/* variable-sized array, specify by ulNumberOfPerformanceLevels. */
+	uint32_t num_of_pl;
+	/* variable-sized array, specify by num_of_pl. */
 	struct phm_odn_performance_level entries[8];
 };
 
Signature · 6 lines
1.9.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1516104017-26976-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org

Reviewed-by
#2 lore raw
Quoted 5 lines · Rex Zhu

abbreviate variable name number_of_performance_levels to num_of_pl in struct phm_odn_clock_levels

Change-Id I132c59dfd28933c4f6eba74fa53ffd0d014ec354
Quoted 49 lines
---
 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c  | 8 ++++----
 drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +4 -4
index d646b27b..fadbc8a 100644
@@ -1386,8 +1386,8 @@ static int vega10_setup_default_dpm_tables(struct pp_hwmgr *hwmgr)
 
        if (PP_CAP(PHM_PlatformCaps_ODNinACSupport) ||
            PP_CAP(PHM_PlatformCaps_ODNinDCSupport)) {
-               data->odn_dpm_table.odn_core_clock_dpm_levels.
-               number_of_performance_levels = data->dpm_table.gfx_table.count;
+               data->odn_dpm_table.odn_core_clock_dpm_levels.num_of_pl =
+                                               data->dpm_table.gfx_table.count;
                for (i = 0; i < data->dpm_table.gfx_table.count; i++) {
                        data->odn_dpm_table.odn_core_clock_dpm_levels.entries[i].clock =
                                        data->dpm_table.gfx_table.dpm_levels[i].value;
@@ -1407,8 +1407,8 @@ static int vega10_setup_default_dpm_tables(struct pp_hwmgr *hwmgr)
                                        dep_gfx_table->entries[i].cks_voffset;
                }
 
-               data->odn_dpm_table.odn_memory_clock_dpm_levels.
-               number_of_performance_levels = data->dpm_table.mem_table.count;
+               data->odn_dpm_table.odn_memory_clock_dpm_levels.num_of_pl =
+                                               data->dpm_table.mem_table.count;
                for (i = 0; i < data->dpm_table.mem_table.count; i++) {
                        data->odn_dpm_table.odn_memory_clock_dpm_levels.entries[i].clock =
                                        data->dpm_table.mem_table.dpm_levels[i].value;
drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h +2 -3
index 933aa44..d6772a8 100644
@@ -368,8 +368,8 @@ struct phm_odn_clock_levels {
        uint32_t size;
        uint32_t options;
        uint32_t flags;
-       uint32_t number_of_performance_levels;
-       /* variable-sized array, specify by ulNumberOfPerformanceLevels. */
+       uint32_t num_of_pl;
+       /* variable-sized array, specify by num_of_pl. */
        struct phm_odn_performance_level entries[8];
 };
 
--

1.9.1

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx