]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: Extract PCU communication
authorBen Widawsky <ben@bwidawsk.net>
Wed, 26 Sep 2012 17:34:00 +0000 (10:34 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 16 Oct 2012 07:23:26 +0000 (09:23 +0200)
commit42c0526c930523425ff6edc95b7235ce7ab9308d
treea294d2d4d1f7e31d78916b466e5bb76a72c763d1
parent39bc66c9371fa6cdb1029e6c1768824f068be913
drm/i915: Extract PCU communication

There is a special mechanism for communicating with the PCU already
being used for the ring frequency stuff. As we'll be needing this for
other commands, extract it now to make future code less error prone and
the current code more reusable.

I'm not entirely sure if this code matches 1:1 with the previous code
behaviorally. Functionally however, it should be the same.

CC: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
[danvet: Fixup compile fail reported by Wu Fengguang.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_pm.c