projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c7a758
)
drm/i915: Remove unused 'in_vbl' from i915_get_crtc_scanoutpos()
author
Chris Wilson
<
[email protected]
>
Thu, 14 Sep 2017 16:42:13 +0000
(17:42 +0100)
committer
Rodrigo Vivi
<
[email protected]
>
Mon, 18 Sep 2017 22:22:37 +0000
(15:22 -0700)
Commit
1bf6ad622b9b
("drm/vblank: drop the mode argument from
drm_calc_vbltimestamp_from_scanoutpos") removed the use of in_vbl, but
did not remove the local variable. Do so now.
Fixes: 1bf6ad622b9b ("drm/vblank: drop the mode argument from drm_calc_vbltimestamp_from_scanoutpos")
Signed-off-by: Chris Wilson <
[email protected]
>
Cc: Ville Syrjälä <
[email protected]
>
Cc: Daniel Vetter <
[email protected]
>
Cc: Jani Nikula <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
Reviewed-by: Ville Syrjälä <
[email protected]
>
(cherry picked from commit
e01e71fc49d4c95090a04f898a3fe788c652a04b
)
Signed-off-by: Rodrigo Vivi <
[email protected]
>
drivers/gpu/drm/i915/i915_irq.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_irq.c
b/drivers/gpu/drm/i915/i915_irq.c
index e21ce9c18b6eee10ad8556d5fb310cd544987c88..b63893eeca73ddf78070bbecf055f6560f8636b7 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_irq.c
+++ b/
drivers/gpu/drm/i915/i915_irq.c
@@
-839,7
+839,6
@@
static bool i915_get_crtc_scanoutpos(struct drm_device *dev, unsigned int pipe,
pipe);
int position;
int vbl_start, vbl_end, hsync_start, htotal, vtotal;
- bool in_vbl = true;
unsigned long irqflags;
if (WARN_ON(!mode->crtc_clock)) {
@@
-922,8
+921,6
@@
static bool i915_get_crtc_scanoutpos(struct drm_device *dev, unsigned int pipe,
spin_unlock_irqrestore(&dev_priv->uncore.lock, irqflags);
- in_vbl = position >= vbl_start && position < vbl_end;
-
/*
* While in vblank, position will be negative
* counting up towards 0 at vbl_end. And outside