drm/i915/display: Share code between intel_drrs_flush and intel_drrs_invalidate
authorJosé Roberto de Souza <jose.souza@intel.com>
Fri, 3 Sep 2021 22:10:35 +0000 (15:10 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Tue, 7 Sep 2021 22:39:43 +0000 (15:39 -0700)
commit6bd58b70af2f982344789f3f13c8decd42dc10dd
treef9483081b40d2b4f6d433deda252a5fa82629543
parentc7c4dfb6fe704ae3cce1a8f438db75b1a0a9061f
drm/i915/display: Share code between intel_drrs_flush and intel_drrs_invalidate

Both functions are pretty much equal, with minor changes that can be
handled by a single parameter.

v3:
- not scheduling work from invalidate operations

Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210903221036.34770-2-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_drrs.c