qcacmn: Avoid logging in packet transmission path
Currently if the driver is in runtime suspend/suspending state, any packet transmission will request for resume via hif_pm_runtime_get. Unfortunately there is a logging in the above API which will lead to more time consumption in the NET_TX softirq context. This can lead to other delay in processing other softirqs in the system. Fix this by skipping the logging in the packet transmission path. Change-Id: Icc9f5b67794f7666243eb059f2e07a06a987002e CRs-Fixed: 2844126
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -455,7 +455,7 @@ inline int hal_reo_cmd_queue_stats(hal_ring_handle_t hal_ring_hdl,
|
||||
cmd->u.stats_params.clear);
|
||||
|
||||
if (hif_pm_runtime_get(hal_soc->hif_handle,
|
||||
RTPM_ID_HAL_REO_CMD) == 0) {
|
||||
RTPM_ID_HAL_REO_CMD, false) == 0) {
|
||||
hal_srng_access_end(hal_soc_hdl, hal_ring_hdl);
|
||||
hif_pm_runtime_put(hal_soc->hif_handle,
|
||||
RTPM_ID_HAL_REO_CMD);
|
||||
@@ -592,7 +592,7 @@ inline int hal_reo_cmd_flush_cache(hal_ring_handle_t hal_ring_hdl,
|
||||
cp->flush_all);
|
||||
|
||||
if (hif_pm_runtime_get(hal_soc->hif_handle,
|
||||
RTPM_ID_HAL_REO_CMD) == 0) {
|
||||
RTPM_ID_HAL_REO_CMD, false) == 0) {
|
||||
hal_srng_access_end(hal_soc_hdl, hal_ring_hdl);
|
||||
hif_pm_runtime_put(hal_soc->hif_handle,
|
||||
RTPM_ID_HAL_REO_CMD);
|
||||
@@ -916,7 +916,7 @@ inline int hal_reo_cmd_update_rx_queue(hal_ring_handle_t hal_ring_hdl,
|
||||
PN_127_96, p->pn_127_96);
|
||||
|
||||
if (hif_pm_runtime_get(hal_soc->hif_handle,
|
||||
RTPM_ID_HAL_REO_CMD) == 0) {
|
||||
RTPM_ID_HAL_REO_CMD, false) == 0) {
|
||||
hal_srng_access_end(hal_soc_hdl, hal_ring_hdl);
|
||||
hif_pm_runtime_put(hal_soc->hif_handle,
|
||||
RTPM_ID_HAL_REO_CMD);
|
||||
|
Reference in New Issue
Block a user