summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixelBot AutoMerger <android-nexus-securitybot@system.gserviceaccount.com>2023-07-09 18:43:09 -0700
committerSecurityBot <android-nexus-securitybot@system.gserviceaccount.com>2023-07-09 18:43:10 -0700
commitddcd98edba61bdfbba96302273484422c540bfae (patch)
tree0f301c872f9fa83d24dffe8247b8633ea25dead7
parentddd450ee47f1d9aba425c2e8289d4e5a00996a00 (diff)
parentac7161be155028370a7090b308703c72bf0fcded (diff)
downloadgchips-ddcd98edba61bdfbba96302273484422c540bfae.tar.gz
Merge android14-gs-pixel-5.15-udc-qpr1 into android14-gs-pixel-5.15
SBMerger: 526756187 Change-Id: I1c12b393ce255a3d4fc3dd1385e160804ca05505 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
-rw-r--r--bigo_pm.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/bigo_pm.c b/bigo_pm.c
index 0dad241..871b68f 100644
--- a/bigo_pm.c
+++ b/bigo_pm.c
@@ -18,7 +18,6 @@
#include "bigo_io.h"
#define BIGW_A0_CSR_PROG_FREQ 166000
-#define LARGE_LOAD_MIF_FLOOR 3744000
static inline u32 bigo_get_total_load(struct bigo_core *core)
{
@@ -46,31 +45,6 @@ static inline u32 bigo_get_total_load(struct bigo_core *core)
return load;
}
-static inline void update_mif_floor(struct bigo_core *core)
-{
- struct bigo_inst *inst;
- u32 load = 0;
- u32 curr_load = 0;
-
- if (!list_empty(&core->instances)) {
- list_for_each_entry(inst, &core->instances, list) {
- if (inst->idle)
- continue;
- curr_load = inst->width * inst->height * inst->fps * inst->bpp / 1024;
- load += curr_load;
- }
- }
-
- if (load > core->pm.max_load) {
- if (!exynos_pm_qos_request_active(&core->pm.qos_req_mif))
- exynos_pm_qos_add_request(&core->pm.qos_req_mif, PM_QOS_BUS_THROUGHPUT, LARGE_LOAD_MIF_FLOOR);
- else
- exynos_pm_qos_update_request(&core->pm.qos_req_mif, LARGE_LOAD_MIF_FLOOR);
- } else if (exynos_pm_qos_request_active(&core->pm.qos_req_mif)) {
- exynos_pm_qos_remove_request(&core->pm.qos_req_mif);
- }
-}
-
static inline u32 bigo_get_target_freq(struct bigo_core *core, u32 load)
{
struct bigo_opp *opp;
@@ -172,7 +146,6 @@ void bigo_update_qos(struct bigo_core *core)
if (rc)
pr_warn("%s: failed to scale bandwidth: %d\n", __func__, rc);
- update_mif_floor(core);
bigo_scale_freq(core);
core->qos_dirty = false;
}