drm/i915: Handle 64-bit return from drm_crtc_vblank_count()
570e86963a
("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
This commit is contained in:
parent
734cbbf3e9
commit
1b29b7ca7d
2 changed files with 2 additions and 2 deletions
|
@ -1593,7 +1593,7 @@ static int i915_fbc_status(struct seq_file *m, void *unused)
|
||||||
seq_printf(m, "FBC disabled: %s\n", fbc->no_fbc_reason);
|
seq_printf(m, "FBC disabled: %s\n", fbc->no_fbc_reason);
|
||||||
|
|
||||||
if (fbc->work.scheduled)
|
if (fbc->work.scheduled)
|
||||||
seq_printf(m, "FBC worker scheduled on vblank %u, now %llu\n",
|
seq_printf(m, "FBC worker scheduled on vblank %llu, now %llu\n",
|
||||||
fbc->work.scheduled_vblank,
|
fbc->work.scheduled_vblank,
|
||||||
drm_crtc_vblank_count(&fbc->crtc->base));
|
drm_crtc_vblank_count(&fbc->crtc->base));
|
||||||
|
|
||||||
|
|
|
@ -723,7 +723,7 @@ struct intel_fbc {
|
||||||
|
|
||||||
struct intel_fbc_work {
|
struct intel_fbc_work {
|
||||||
bool scheduled;
|
bool scheduled;
|
||||||
u32 scheduled_vblank;
|
u64 scheduled_vblank;
|
||||||
struct work_struct work;
|
struct work_struct work;
|
||||||
} work;
|
} work;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue