msm: bam_bmux: Add in_global_reset check while rescheduling queue_rx
In modem SSR case rescheduling of queue_rx_work for every 100ms
causing system to overload by rescheduling unnecessary work and
overflow kernel meesages with rescheduling logs.
Hence block the rescheduling of queue_rx_info
by adding in_global_reset flag check during modem SSR.
CRs-Fixed: 422096
Change-Id: I14bc8d82e44231a86b58faa0158740565177653d
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
diff --git a/arch/arm/mach-msm/bam_dmux.c b/arch/arm/mach-msm/bam_dmux.c
index a3a70eb..dd0b345 100644
--- a/arch/arm/mach-msm/bam_dmux.c
+++ b/arch/arm/mach-msm/bam_dmux.c
@@ -494,7 +494,7 @@
kfree(info);
fail:
- if (rx_len_cached == 0) {
+ if (rx_len_cached == 0 && !in_global_reset) {
DMUX_LOG_KERR("%s: rescheduling\n", __func__);
schedule_delayed_work(&queue_rx_work, msecs_to_jiffies(100));
}