CHROMIUM: MALI: mediatek: use autosuspend in pm_callback_power_off

Mediatek platform currently use pm_runtime_put_sync() in suspend
callback. We should use pm_runtime_put_autosuspend() here to avoid
needless transitions if a device gets runtime powered off and on
rapidly.

BUG=b:140543845
TEST=on krane, `cat /sys/class/devfreq/devfreq1/cur_freq`
when there's not much gpu load (eg. webgl).
TEST=on krane, use watchspeed.py when running webgl 500 fish
  G: 62663 ( 400: 38%  420: 21%  460: 11%  500: 10%  800: 21%)
  G: 61161 ( 300: 35%  340: 11%  380: 33%  400: 11%  460: 11%)
  G: 60786 ( 300: 19%  400: 48%  420: 11%  460: 11%  800: 10%)

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