]> 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)
commit241fe36cbda22471dbb27783a6f97fb316f08a0c
tree37dd4d4980d15452b57616e6be075798ee3afa04
parente43fbb54ed514f7c538c6b7115fe964a2f9862a0
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