drm/amdgpu/powerplay: include asm/div64.h for do_div()
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 31 Dec 2015 10:20:20 +0000 (21:20 +1100)
committerDave Airlie <airlied@redhat.com>
Mon, 11 Jan 2016 23:29:25 +0000 (09:29 +1000)
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
drivers/gpu/drm/amd/powerplay/hwmgr/tonga_thermal.c

index def57d0..e76a7de 100644 (file)
@@ -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"
index 2e159b0..a188174 100644 (file)
@@ -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"