]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/pm: fix is_dpm_running() run error on 32bit system
authorKevin Wang <kevin1.wang@amd.com>
Mon, 24 Aug 2020 08:50:12 +0000 (16:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Sep 2020 04:33:16 +0000 (00:33 -0400)
commitb4dcaee33a9f0a82ae840b6e000a6365004b2a9e
tree26ced5002c911b6cd7048e4db1249af2cedf7db8
parentbeea5f8bd9170d3d0e6476d33bde88d795ce40b0
drm/amd/pm: fix is_dpm_running() run error on 32bit system

v1:
the C type "unsigned long" size is 32bit on 32bit system,
it will cause code logic error, so replace it with "uint64_t".

v2:
remove duplicate cast operation.

Signed-off-by: Kevin <kevin1.wang@amd.com>
Suggest-by: Jiansong Chen <Jiansong.Chen@amd.com>
Reviewed-by: Jiansong Chen <Jiansong.Chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/arcturus_ppt.c
drivers/gpu/drm/amd/powerplay/navi10_ppt.c
drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c