drm/i915/cnl: simplify cnl_procmon_values handling
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Tue, 22 Aug 2017 00:03:55 +0000 (17:03 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 22 Aug 2017 16:22:07 +0000 (09:22 -0700)
commite0b8acf35d3c4de3d9b4bde18169e0562d748c89
tree37da77edc9f23f74fe6720f8374e5fa2e179eccb
parent74d290f845d0736bf6b9dd22cd28dd87b270c65f
drm/i915/cnl: simplify cnl_procmon_values handling

Make it a little less magical and a little simpler and more hardcoded
so we don't end up with an array that's composed mostly of empty
entries.

v2: Add an enum for the voltage+register values (Ville).

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170822000356.17330-1-rodrigo.vivi@intel.com
drivers/gpu/drm/i915/intel_runtime_pm.c