CHROMIUM: MALI: mediatek: Implement power_runtime_on_callback

Prepare clock and enable regulator in power_runtime_on_callback.
Similarly for power_runtime_off_callback.

Previously they are done in power_on_callback. Each GPU transaction will
turn on/off these, which might be slow.

BUG=b:140543845
TEST=test with CL:1801289 and measure dut-power, graphics_GLBench

Change-Id: I81ce35560b16f7d82e2f3f9fcc88c30f74b98942
Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1804031
Reviewed-by: Nick Fan <nick.fan@mediatek.corp-partner.google.com>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
1 file changed