drm/i915: Create generic functions to control RC6, RPS
authorSagar Arun Kamble <[email protected]>
Tue, 10 Oct 2017 21:30:09 +0000 (22:30 +0100)
committerChris Wilson <[email protected]>
Wed, 11 Oct 2017 07:57:05 +0000 (08:57 +0100)
commitfc77426a8d69d6a706378a53b18c882578af44e5
tree45161fb1fc45aadd1851b55d98fb010ab102d35a
parent0870a2a4a3d0aab568ce5729bd99f43f96825f85
drm/i915: Create generic functions to control RC6, RPS

Prepared generic functions intel_enable_rc6, intel_disable_rc6,
intel_enable_rps and intel_disable_rps functions to setup RC6/RPS
based on platforms.

v2: Make intel_enable/disable_rc6/rps static. (Chris)

v3: Added lockdep_assert_held(dev_priv->pcu_lock) in new generic
functions. (Chris)
Removed WARN_ON(&dev_priv->pcu_lock) from lower level functions as generic
function now has lockdep_assert. Rebase.

Signed-off-by: Sagar Arun Kamble <[email protected]>
Cc: Imre Deak <[email protected]>
Cc: Chris Wilson <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: Radoslaw Szwichtenberg <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Acked-by: Imre Deak <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/intel_pm.c