Skip to contentSkip to conversation

drm/i915: make i915_get_extra_instdone() static

PATCH New Mika Kuoppala 1 participant 1 message Jul 18, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: make i915_get_extra_instdone() static

commit 84734a049d0ef2f6f5fb0a1fe060cd51480dd855

Author: Mika Kuoppala <[email protected]>
Date:   Fri Jul 12 16:50:57 2013 +0300

drm/i915: move error state to own compilation unit

had to export i915_get_extra_instdone() as it was used also in i915_irq.c. Daniel Vetter noticed that
as i915_capture_error_state() is already storing instdone, there is no need to do it twice in a row nor need to export it.

---
 drivers/gpu/drm/i915/i915_drv.h       |    2 --
 drivers/gpu/drm/i915/i915_gpu_error.c |   56 ++++++++++++++++-----------------
 drivers/gpu/drm/i915/i915_irq.c       |    2 --
 3 files changed, 28 insertions(+), 32 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +0 -2
index c93ab68..2c3f358 100644
@@ -1963,8 +1963,6 @@ void i915_error_state_get(struct drm_device *dev,
 			  struct i915_error_state_file_priv *error_priv);
 void i915_error_state_put(struct i915_error_state_file_priv *error_priv);
 void i915_destroy_error_state(struct drm_device *dev);
-
-void i915_get_extra_instdone(struct drm_device *dev, uint32_t *instdone);
 const char *i915_cache_level_str(int type);
 
 /* i915_suspend.c */
drivers/gpu/drm/i915/i915_gpu_error.c +28 -28

65 lines not on this page · raw message

drivers/gpu/drm/i915/i915_irq.c +0 -2
index 9910699..9ec3080 100644
@@ -1500,8 +1500,6 @@ static void i915_report_and_clear_eir(struct drm_device *dev)
 
 	pr_err("render error detected, EIR: 0x%08x\n", eir);
 
-	i915_get_extra_instdone(dev, instdone);
-
 	if (IS_G4X(dev)) {
 		if (eir & (GM45_ERROR_MEM_PRIV | GM45_ERROR_CP_PRIV)) {
 			u32 ipeir = I915_READ(IPEIR_I965);
Signature · 1 line
1.7.9.5