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 def57d0675ed46d04b6e80b0c9f41815c10d3aa9..e76a7de9aa327b681db48f4fc8793feb62c254d3 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 2e159b003e71cd8b65068e554db74db4f1c3b2c2..a188174747c9f1465a04a9a5c62af5dfa135b348 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"