diff options
Diffstat (limited to 'common/recipes-kernel/linux/files/0167-drm-amdgpu-powerplay-include-asm-div64.h-for-do_div.patch')
-rw-r--r-- | common/recipes-kernel/linux/files/0167-drm-amdgpu-powerplay-include-asm-div64.h-for-do_div.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0167-drm-amdgpu-powerplay-include-asm-div64.h-for-do_div.patch b/common/recipes-kernel/linux/files/0167-drm-amdgpu-powerplay-include-asm-div64.h-for-do_div.patch new file mode 100644 index 00000000..6e27ebc8 --- /dev/null +++ b/common/recipes-kernel/linux/files/0167-drm-amdgpu-powerplay-include-asm-div64.h-for-do_div.patch @@ -0,0 +1,43 @@ +From d48d44b0fa43f11e6a7d5dc54fd044d9151eade9 Mon Sep 17 00:00:00 2001 +From: Stephen Rothwell <sfr@canb.auug.org.au> +Date: Thu, 31 Dec 2015 21:20:20 +1100 +Subject: [PATCH 0167/1110] drm/amdgpu/powerplay: include asm/div64.h for + do_div() + +Fixes: 1e4854e96c35 ("drm/amdgpu/powerplay: implement thermal control for tonga.") +Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> +Signed-off-by: Dave Airlie <airlied@redhat.com> +--- + drivers/gpu/drm/amd/powerplay/hwmgr/fiji_thermal.c | 2 +- + drivers/gpu/drm/amd/powerplay/hwmgr/tonga_thermal.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/fiji_thermal.c b/drivers/gpu/drm/amd/powerplay/hwmgr/fiji_thermal.c +index def57d0..e76a7de 100644 +--- a/drivers/gpu/drm/amd/powerplay/hwmgr/fiji_thermal.c ++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/fiji_thermal.c +@@ -20,7 +20,7 @@ + * OTHER DEALINGS IN THE SOFTWARE. + * + */ +- ++#include <asm/div64.h> + #include "fiji_thermal.h" + #include "fiji_hwmgr.h" + #include "fiji_smumgr.h" +diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_thermal.c b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_thermal.c +index 2e159b0..a188174 100644 +--- a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_thermal.c ++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_thermal.c +@@ -20,7 +20,7 @@ + * OTHER DEALINGS IN THE SOFTWARE. + * + */ +- ++#include <asm/div64.h> + #include "tonga_thermal.h" + #include "tonga_hwmgr.h" + #include "tonga_smumgr.h" +-- +2.7.4 + |