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-04-29 21:54:42 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2020-04-30 00:57:35 +0100
commit9bad2adbddfee476185f1d77a8bf496f841d2088 (patch)
tree0d45752080bf5f242ab1f5e35aa981ee24d2ff03 /drivers/gpu/drm/i915/gt/intel_rps_types.h
parent426d0073fb6d1a9513978cea4c9e8396f3721fba (diff)
drm/i915/gt: Move rps.enabled/active to flags
Pull the boolean intel_rps.enabled and intel_rps.active into a single flags field, in preparation for more. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Andi Shyti <andi.shyti@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200429205446.3259-2-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.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/gt/intel_rps_types.h b/drivers/gpu/drm/i915/gt/intel_rps_types.h
index c2e279154bd5..1ec44f994bc5 100644
--- a/drivers/gpu/drm/i915/gt/intel_rps_types.h
+++ b/drivers/gpu/drm/i915/gt/intel_rps_types.h
@@ -31,6 +31,11 @@ struct intel_rps_ei {
u32 media_c0;
};
+enum {
+ INTEL_RPS_ENABLED = 0,
+ INTEL_RPS_ACTIVE,
+};
+
struct intel_rps {
struct mutex lock; /* protects enabling and the worker */
@@ -39,8 +44,7 @@ struct intel_rps {
* dev_priv->irq_lock
*/
struct work_struct work;
- bool enabled;
- bool active;
+ unsigned long flags;
u32 pm_iir;
/* PM interrupt bits that should never be masked */