diff options
author | Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> | 2018-02-03 00:12:55 -0500 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2018-02-15 14:48:39 -0500 |
commit | 1b29b7ca7d43be309d399c996910c04a8ba0c195 (patch) | |
tree | c29d3e7054b2431df3ce4deed8e89df45c7f81e2 /drivers/gpu | |
parent | 734cbbf3e9234b9d6c1a71e1f3f85ed9c7f0e16b (diff) |
drm/i915: Handle 64-bit return from drm_crtc_vblank_count()
570e86963a51 ("drm: Widen vblank count to 64-bits [v3]") changed the
return type for drm_crtc_vblank_count() to u64, store all the bits
without truncating. There is no need to type cast this value down to
32-bits.
Cc: Keith Packard <keithp@keithp.com>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180203051302.9974-3-dhinakaran.pandiyan@intel.com
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 960302668649..3560eb567ca7 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c | |||
@@ -1593,7 +1593,7 @@ static int i915_fbc_status(struct seq_file *m, void *unused) | |||
1593 | seq_printf(m, "FBC disabled: %s\n", fbc->no_fbc_reason); | 1593 | seq_printf(m, "FBC disabled: %s\n", fbc->no_fbc_reason); |
1594 | 1594 | ||
1595 | if (fbc->work.scheduled) | 1595 | if (fbc->work.scheduled) |
1596 | seq_printf(m, "FBC worker scheduled on vblank %u, now %llu\n", | 1596 | seq_printf(m, "FBC worker scheduled on vblank %llu, now %llu\n", |
1597 | fbc->work.scheduled_vblank, | 1597 | fbc->work.scheduled_vblank, |
1598 | drm_crtc_vblank_count(&fbc->crtc->base)); | 1598 | drm_crtc_vblank_count(&fbc->crtc->base)); |
1599 | 1599 | ||
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 822f50e472b6..3a222f1165af 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -723,7 +723,7 @@ struct intel_fbc { | |||
723 | 723 | ||
724 | struct intel_fbc_work { | 724 | struct intel_fbc_work { |
725 | bool scheduled; | 725 | bool scheduled; |
726 | u32 scheduled_vblank; | 726 | u64 scheduled_vblank; |
727 | struct work_struct work; | 727 | struct work_struct work; |
728 | } work; | 728 | } work; |
729 | 729 | ||