drm/i915: Move the common RPS warnings to intel_set_rps()
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 20 Feb 2017 09:47:07 +0000 (09:47 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 20 Feb 2017 12:40:03 +0000 (12:40 +0000)
commitcfd1c48805208b1f1d5f4df153a15fa4a280eb54
tree86f6ce1ef8a9b6328c1ad85a19b19a5e723949a6
parent784f2f1a9da22b0ab00c1b364ee2c10573f5c248
drm/i915: Move the common RPS warnings to intel_set_rps()

Instead of having each back-end provide identical guards, just have a
singular set in intel_set_rps() to verify that the caller is obeying the
rules.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Radoslaw Szwichtenberg <radoslaw.szwichtenberg@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170220094713.22874-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_pm.c