]> git.baikalelectronics.ru Git - kernel.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)
commit239fac1c968768c305844bc7bca48ecabdfeb865
treea294d2d4d1f7e31d78916b466e5bb76a72c763d1
parentf08dd929edda341aead0114031d9e595c02447f8
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