]> git.baikalelectronics.ru Git - kernel.git/commit
drm/etnaviv: move runtime PM balance into retire worker
authorLucas Stach <l.stach@pengutronix.de>
Thu, 7 Jan 2016 11:43:15 +0000 (12:43 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Mon, 7 Mar 2016 14:36:50 +0000 (15:36 +0100)
commit160f0c652f7946fc1dee47b8088ecc0af1d62069
tree37dd4d4980d15452b57616e6be075798ee3afa04
parent21f137c2e80d71afb9113d1f657b8c89550d6292
drm/etnaviv: move runtime PM balance into retire worker

The retire worker is kicked for each fence, either the normal way
by signaling the fence from the event completion interrupt or by
the recover worker if the GPU got stuck. Moving the RPM put into
the retire worker allows us to have it in a single place for
both cases.

This also shaves off quite a bit of the CPU time spent in hardirq
context, as arming the autosuspend timer when the RPM refcount
drops to 0 is a relatively costly operation.

Tested-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_gpu.c