summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/gt/intel_rps_types.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-12-31 09:31:49 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2020-12-31 15:15:05 +0000
commit4e5c8a99e1cb701aa3ed70d9c0eb5aacd9529390 (patch)
tree5bd5330272a99cae45965a966d6fce081a40a7cb /drivers/gpu/drm/i915/gt/intel_rps_types.h
parent9c080b0f96371dceca92d67b0c50c07b479203e2 (diff)
drm/i915: Drop i915_request.lock requirement for intel_rps_boost()
Since we use a flag within i915_request.flags to indicate when we have boosted the request (so that we only apply the boost) once, this can be used as the serialisation with i915_request_retire() to avoid having to explicitly take the i915_request.lock which is more heavily contended. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20201231093149.19086-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/gt/intel_rps_types.h')
-rw-r--r--drivers/gpu/drm/i915/gt/intel_rps_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gt/intel_rps_types.h b/drivers/gpu/drm/i915/gt/intel_rps_types.h
index 38083f0402d9..029fe13cf303 100644
--- a/drivers/gpu/drm/i915/gt/intel_rps_types.h
+++ b/drivers/gpu/drm/i915/gt/intel_rps_types.h
@@ -93,7 +93,7 @@ struct intel_rps {
} power;
atomic_t num_waiters;
- atomic_t boosts;
+ unsigned int boosts;
/* manual wa residency calculations */
struct intel_rps_ei ei;