diff options
author | Matthew Brost <matthew.brost@intel.com> | 2021-06-18 04:06:35 +0300 |
---|---|---|
committer | Matt Roper <matthew.d.roper@intel.com> | 2021-06-19 01:13:34 +0300 |
commit | 3f623e06cd56573d57660ce02d63aaf0a09d3fbb (patch) | |
tree | 7f58be2e5357a6b4c3612845fa6faf720ce9e485 /drivers/gpu/drm/i915/gt/selftest_hangcheck.c | |
parent | 349a2bc5aae45f54bce1c6fd54d8d3ac2ae26611 (diff) | |
download | linux-3f623e06cd56573d57660ce02d63aaf0a09d3fbb.tar.xz |
drm/i915: Move engine->schedule to i915_sched_engine
The schedule function should be in the schedule object.
v3:
(Jason Ekstrand)
Add kernel doc
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210618010638.98941-6-matthew.brost@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/gt/selftest_hangcheck.c')
-rw-r--r-- | drivers/gpu/drm/i915/gt/selftest_hangcheck.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/gt/selftest_hangcheck.c b/drivers/gpu/drm/i915/gt/selftest_hangcheck.c index 853246fad05f..cec4b9977c9b 100644 --- a/drivers/gpu/drm/i915/gt/selftest_hangcheck.c +++ b/drivers/gpu/drm/i915/gt/selftest_hangcheck.c @@ -858,12 +858,12 @@ static int active_engine(void *data) rq[idx] = i915_request_get(new); i915_request_add(new); - if (engine->schedule && arg->flags & TEST_PRIORITY) { + if (engine->sched_engine->schedule && arg->flags & TEST_PRIORITY) { struct i915_sched_attr attr = { .priority = i915_prandom_u32_max_state(512, &prng), }; - engine->schedule(rq[idx], &attr); + engine->sched_engine->schedule(rq[idx], &attr); } err = active_request_put(old); |