Commit b2a0af1b authored by Derek Basehore's avatar Derek Basehore
Browse files

rockchip/rk3399: Fix QOS save/restore



The code was accidentally restoring the QOS on suspend and saving the
QOS on resume. This is the opposite of what we want.
Signed-off-by: default avatarDerek Basehore <dbasehore@chromium.org>
parent 3580a497
...@@ -95,7 +95,7 @@ static void pmu_bus_idle_req(uint32_t bus, uint32_t state) ...@@ -95,7 +95,7 @@ static void pmu_bus_idle_req(uint32_t bus, uint32_t state)
struct pmu_slpdata_s pmu_slpdata; struct pmu_slpdata_s pmu_slpdata;
static void qos_save(void) static void qos_restore(void)
{ {
if (pmu_power_domain_st(PD_GPU) == pmu_pd_on) if (pmu_power_domain_st(PD_GPU) == pmu_pd_on)
RESTORE_QOS(pmu_slpdata.gpu_qos, GPU); RESTORE_QOS(pmu_slpdata.gpu_qos, GPU);
...@@ -161,7 +161,7 @@ static void qos_save(void) ...@@ -161,7 +161,7 @@ static void qos_save(void)
} }
} }
static void qos_restore(void) static void qos_save(void)
{ {
if (pmu_power_domain_st(PD_GPU) == pmu_pd_on) if (pmu_power_domain_st(PD_GPU) == pmu_pd_on)
SAVE_QOS(pmu_slpdata.gpu_qos, GPU); SAVE_QOS(pmu_slpdata.gpu_qos, GPU);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment