diff options
author | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2017-09-19 15:38:44 -0400 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2017-09-22 07:50:36 -0400 |
commit | 4f044a88a86adb4c8cc6cb1a7303bb9c61ea2caa (patch) | |
tree | 564beebc998c2fa33c24fbc7c93c56be86dd3f97 /drivers/gpu/drm/i915/i915_perf.c | |
parent | a3df2c857c103b1103c9d578d68193a6fbe63c61 (diff) |
drm/i915: Rename global i915 to i915_modparams
Our global struct with params is named exactly the same way
as new preferred name for the drm_i915_private function parameter.
To avoid such name reuse lets use different name for the global.
v5: pure rename
v6: fix
Credits-to: Coccinelle
@@
identifier n;
@@
(
- i915.n
+ i915_modparams.n
)
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Ville Syrjala <ville.syrjala@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Acked-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170919193846.38060-1-michal.wajdeczko@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_perf.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_perf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/i915_perf.c b/drivers/gpu/drm/i915/i915_perf.c index 902722ab84c9..1383a2995a69 100644 --- a/drivers/gpu/drm/i915/i915_perf.c +++ b/drivers/gpu/drm/i915/i915_perf.c | |||
@@ -1214,7 +1214,7 @@ static int oa_get_render_ctx_id(struct i915_perf_stream *stream) | |||
1214 | { | 1214 | { |
1215 | struct drm_i915_private *dev_priv = stream->dev_priv; | 1215 | struct drm_i915_private *dev_priv = stream->dev_priv; |
1216 | 1216 | ||
1217 | if (i915.enable_execlists) | 1217 | if (i915_modparams.enable_execlists) |
1218 | dev_priv->perf.oa.specific_ctx_id = stream->ctx->hw_id; | 1218 | dev_priv->perf.oa.specific_ctx_id = stream->ctx->hw_id; |
1219 | else { | 1219 | else { |
1220 | struct intel_engine_cs *engine = dev_priv->engine[RCS]; | 1220 | struct intel_engine_cs *engine = dev_priv->engine[RCS]; |
@@ -1260,7 +1260,7 @@ static void oa_put_render_ctx_id(struct i915_perf_stream *stream) | |||
1260 | { | 1260 | { |
1261 | struct drm_i915_private *dev_priv = stream->dev_priv; | 1261 | struct drm_i915_private *dev_priv = stream->dev_priv; |
1262 | 1262 | ||
1263 | if (i915.enable_execlists) { | 1263 | if (i915_modparams.enable_execlists) { |
1264 | dev_priv->perf.oa.specific_ctx_id = INVALID_CTX_ID; | 1264 | dev_priv->perf.oa.specific_ctx_id = INVALID_CTX_ID; |
1265 | } else { | 1265 | } else { |
1266 | struct intel_engine_cs *engine = dev_priv->engine[RCS]; | 1266 | struct intel_engine_cs *engine = dev_priv->engine[RCS]; |
@@ -3408,7 +3408,7 @@ void i915_perf_init(struct drm_i915_private *dev_priv) | |||
3408 | dev_priv->perf.oa.timestamp_frequency = 12500000; | 3408 | dev_priv->perf.oa.timestamp_frequency = 12500000; |
3409 | 3409 | ||
3410 | dev_priv->perf.oa.oa_formats = hsw_oa_formats; | 3410 | dev_priv->perf.oa.oa_formats = hsw_oa_formats; |
3411 | } else if (i915.enable_execlists) { | 3411 | } else if (i915_modparams.enable_execlists) { |
3412 | /* Note: that although we could theoretically also support the | 3412 | /* Note: that although we could theoretically also support the |
3413 | * legacy ringbuffer mode on BDW (and earlier iterations of | 3413 | * legacy ringbuffer mode on BDW (and earlier iterations of |
3414 | * this driver, before upstreaming did this) it didn't seem | 3414 | * this driver, before upstreaming did this) it didn't seem |