mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 00:39:48 +00:00
drm/amd/powerplay: do the comparison in the right Khz granularity
Convert the operands on the two sides into the same granularity. Signed-off-by: Evan Quan <evan.quan@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
34955e038a
commit
3a10f6e8aa
1 changed files with 2 additions and 2 deletions
|
@ -2742,7 +2742,7 @@ static int vega20_print_clock_levels(struct pp_hwmgr *hwmgr,
|
||||||
for (i = 0; i < clocks.num_levels; i++)
|
for (i = 0; i < clocks.num_levels; i++)
|
||||||
size += sprintf(buf + size, "%d: %uMhz %s\n",
|
size += sprintf(buf + size, "%d: %uMhz %s\n",
|
||||||
i, clocks.data[i].clocks_in_khz / 1000,
|
i, clocks.data[i].clocks_in_khz / 1000,
|
||||||
(clocks.data[i].clocks_in_khz == now) ? "*" : "");
|
(clocks.data[i].clocks_in_khz == now * 10) ? "*" : "");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PP_MCLK:
|
case PP_MCLK:
|
||||||
|
@ -2759,7 +2759,7 @@ static int vega20_print_clock_levels(struct pp_hwmgr *hwmgr,
|
||||||
for (i = 0; i < clocks.num_levels; i++)
|
for (i = 0; i < clocks.num_levels; i++)
|
||||||
size += sprintf(buf + size, "%d: %uMhz %s\n",
|
size += sprintf(buf + size, "%d: %uMhz %s\n",
|
||||||
i, clocks.data[i].clocks_in_khz / 1000,
|
i, clocks.data[i].clocks_in_khz / 1000,
|
||||||
(clocks.data[i].clocks_in_khz == now) ? "*" : "");
|
(clocks.data[i].clocks_in_khz == now * 10) ? "*" : "");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PP_PCIE:
|
case PP_PCIE:
|
||||||
|
|
Loading…
Reference in a new issue