rockchip/rk3399: Fix QOS save/restore
authorDerek Basehore <dbasehore@chromium.org>
Wed, 24 Jan 2018 00:02:27 +0000 (16:02 -0800)
committerDerek Basehore <dbasehore@chromium.org>
Wed, 24 Jan 2018 01:42:52 +0000 (17:42 -0800)
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: Derek Basehore <dbasehore@chromium.org>
plat/rockchip/rk3399/drivers/pmu/pmu.c

index c666c3c200d4f47b8455843ab6107b61367efaf9..df8152f4f8e0098394c61d6715113640708ea811 100644 (file)
@@ -95,7 +95,7 @@ static void pmu_bus_idle_req(uint32_t bus, uint32_t state)
 
 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)
                RESTORE_QOS(pmu_slpdata.gpu_qos, GPU);
@@ -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)
                SAVE_QOS(pmu_slpdata.gpu_qos, GPU);