From fb1fbff95a55188c6fe9bdf9a7697bef55e96108 Mon Sep 17 00:00:00 2001 From: Linux Image Build Automation Date: Wed, 23 Aug 2023 16:19:28 -0700 Subject: [PATCH] Revert "dsp-kernel: make pm relax vote when process is exiting" This reverts commit 6dd07d65780e0012074573d871b574de85c7de72. Change-Id: I698b0f770e4aff4c99bfd2635d4a236023b7a5dd Signed-off-by: Linux Image Build Automation --- dsp/adsprpc.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/dsp/adsprpc.c b/dsp/adsprpc.c index 570c5bf2f5..6e19f6e473 100644 --- a/dsp/adsprpc.c +++ b/dsp/adsprpc.c @@ -3064,24 +3064,6 @@ static inline void fastrpc_pm_awake(struct fastrpc_file *fl, int channel_type) pm_wakeup_ws_event(wake_source, fl->ws_timeout, true); } -static inline void fastrpc_pm_relax(struct fastrpc_file *fl, int channel_type) -{ - struct fastrpc_apps *me = &gfa; - struct wakeup_source *wake_source = NULL; - - if (!fl->wake_enable) - return; - - if (channel_type == SECURE_CHANNEL) - wake_source = me->wake_source_secure; - else if (channel_type == NON_SECURE_CHANNEL) - wake_source = me->wake_source; - - ADSPRPC_INFO("done for tgid %d\n", fl->tgid); - if (wake_source) - __pm_relax(wake_source); -} - static inline int fastrpc_wait_for_response(struct smq_invoke_ctx *ctx, uint32_t kernel) { @@ -5913,7 +5895,6 @@ skip_dump_wait: } while (lmap); mutex_unlock(&fl->map_mutex); mutex_unlock(&fl->internal_map_mutex); - fastrpc_pm_relax(fl, gcinfo[fl->cid].secure); if (fl->device && is_driver_closed) device_unregister(&fl->device->dev);