drm/etnaviv: move idle mapping reaping into separate function

commit 5a40837deb upstream.

The same logic is already used in two different places and now
it will also be needed outside of the compilation unit, so split
it into a separate function.

Cc: stable@vger.kernel.org # 5.19
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Guido Günther <agx@sigxcpu.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Lucas Stach 2022-07-14 12:31:42 +02:00 • committed by Greg Kroah-Hartman
commit 84bcb7d09a
2 changed files with 16 additions and 8 deletions