mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
drm/i915: Use to_gt() helper
Use to_gt() helper consistently throughout the codebase. Pure mechanical s/i915->gt/to_gt(i915). No functional changes. Signed-off-by: Michał Winiarski <michal.winiarski@intel.com> Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20211214193346.21231-10-andi.shyti@linux.intel.com
This commit is contained in:
committed by
Matt Roper
parent
c68c74f5b9
commit
2cbc876daa
@@ -505,7 +505,7 @@ static void error_print_context(struct drm_i915_error_state_buf *m,
|
||||
const char *header,
|
||||
const struct i915_gem_context_coredump *ctx)
|
||||
{
|
||||
const u32 period = m->i915->gt.clock_period_ns;
|
||||
const u32 period = to_gt(m->i915)->clock_period_ns;
|
||||
|
||||
err_printf(m, "%s%s[%d] prio %d, guilty %d active %d, runtime total %lluns, avg %lluns\n",
|
||||
header, ctx->comm, ctx->pid, ctx->sched_attr.priority,
|
||||
@@ -1846,7 +1846,7 @@ i915_gpu_coredump_alloc(struct drm_i915_private *i915, gfp_t gfp)
|
||||
|
||||
error->time = ktime_get_real();
|
||||
error->boottime = ktime_get_boottime();
|
||||
error->uptime = ktime_sub(ktime_get(), i915->gt.last_init_time);
|
||||
error->uptime = ktime_sub(ktime_get(), to_gt(i915)->last_init_time);
|
||||
error->capture = jiffies;
|
||||
|
||||
capture_gen(error);
|
||||
|
||||
Reference in New Issue
Block a user