]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Nuke mode.vrefresh usage
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 29 Apr 2020 18:54:55 +0000 (21:54 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 4 May 2020 15:44:52 +0000 (18:44 +0300)
commitd19b29be653691a179e54aafc84fc40667a63ee7
tree6ee8aba0281530763728a352f029e4864beb0add
parentdab3aff7b1a503819c68e38f51b3dcc0508b35cd
drm/i915: Nuke mode.vrefresh usage

mode.vrefresh is rounded to the nearest integer. You don't want to use
it anywhere that requires precision. Also I want to nuke it.
vtotal*vrefresh == 1000*clock/htotal, so let's use the latter.

Cc: Anshuman Gupta <anshuman.gupta@intel.com>
Cc: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200429185457.26235-1-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
drivers/gpu/drm/i915/display/intel_audio.c