]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Rename and comment all the RPS *stuff*
authorBen Widawsky <benjamin.widawsky@intel.com>
Thu, 20 Mar 2014 01:31:11 +0000 (18:31 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 20 Mar 2014 13:45:41 +0000 (14:45 +0100)
commit428103d93f11f122b7a8791e3259f7efe0ad9e92
tree72884c1e0e749b6c68ee8f0b3c4bd91205d3006c
parente6ed31c45bba5f11306923e6429772b03f43cc4a
drm/i915: Rename and comment all the RPS *stuff*

The names of the struct members for RPS are stupid. Every time I need to
do anything in this code I have to spend a significant amount of time to
remember what it all means. By renaming the variables (and adding the
comments) I hope to clear up the situation. Indeed doing this make some
upcoming patches more readable.

I've avoided ILK because it's possible that the naming used for Ironlake
matches what is in the docs. I believe the ILK power docs were never
published, and I am too lazy to dig them up.

v2: leave rp0, and rp1 in the names. It is useful to have these limits
available at times. min_freq and max_freq (which may be equal to rp0, or
rp1 depending on the platform) represent the actual HW min and max.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
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/i915_irq.c
drivers/gpu/drm/i915/i915_sysfs.c
drivers/gpu/drm/i915/intel_pm.c