diff options
author | Venkateswara Swamy Bandaru <vbandaru@codeaurora.org> | 2017-09-07 17:33:31 +0530 |
---|---|---|
committer | Nandini Suresh <snandini@codeaurora.org> | 2017-09-21 16:41:57 -0700 |
commit | b3d6b4e44647e2fd8ba3157f3ad5ee9f0689cfa8 (patch) | |
tree | a75943785eaeee17a1159c70a9f25be19be6f7cd /hif | |
parent | 1d5f7ede48b51711d5d8c9dc3ea9f307746782d6 (diff) | |
download | qca-wfi-host-cmn-b3d6b4e44647e2fd8ba3157f3ad5ee9f0689cfa8.tar.gz |
qcacmn: remove module parameter from dp code
Remove napi_budget module parameter from dp code.
Change-Id: Ib48d08044977da9091f1a1264d219420d7f53962
CRs-Fixed: 2096650
Diffstat (limited to 'hif')
-rw-r--r-- | hif/inc/hif.h | 3 | ||||
-rw-r--r-- | hif/src/hif_exec.c | 15 | ||||
-rw-r--r-- | hif/src/hif_exec.h | 4 |
3 files changed, 13 insertions, 9 deletions
diff --git a/hif/inc/hif.h b/hif/inc/hif.h index b6f8ca20f..889c8ab63 100644 --- a/hif/inc/hif.h +++ b/hif/inc/hif.h @@ -890,7 +890,8 @@ uint32_t hif_configure_ext_group_interrupts(struct hif_opaque_softc *hif_ctx); uint32_t hif_register_ext_group(struct hif_opaque_softc *hif_ctx, uint32_t numirq, uint32_t irq[], ext_intr_handler handler, void *cb_ctx, const char *context_name, - uint32_t budget); + enum hif_exec_type type, uint32_t scale); + void hif_deregister_exec_group(struct hif_opaque_softc *hif_ctx, const char *context_name); diff --git a/hif/src/hif_exec.c b/hif/src/hif_exec.c index 1447eaa0c..15d8f60e3 100644 --- a/hif/src/hif_exec.c +++ b/hif/src/hif_exec.c @@ -342,7 +342,8 @@ void hif_exec_kill(struct hif_opaque_softc *hif_ctx) */ uint32_t hif_register_ext_group(struct hif_opaque_softc *hif_ctx, uint32_t numirq, uint32_t irq[], ext_intr_handler handler, - void *cb_ctx, const char *context_name, uint32_t budget) + void *cb_ctx, const char *context_name, + enum hif_exec_type type, uint32_t scale) { struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); struct HIF_CE_state *hif_state = HIF_GET_CE_STATE(scn); @@ -363,7 +364,7 @@ uint32_t hif_register_ext_group(struct hif_opaque_softc *hif_ctx, return QDF_STATUS_E_FAILURE; } - hif_ext_group = hif_exec_create(budget); + hif_ext_group = hif_exec_create(type, scale); if (hif_ext_group == NULL) return QDF_STATUS_E_FAILURE; @@ -387,15 +388,15 @@ uint32_t hif_register_ext_group(struct hif_opaque_softc *hif_ctx, * hif_exec_create() - create an execution context * @type: the type of execution context to create */ -struct hif_exec_context *hif_exec_create(uint32_t budget) +struct hif_exec_context *hif_exec_create(enum hif_exec_type type, + uint32_t scale) { - uint32_t type = budget <= 0xFFFF ? - HIF_EXEC_NAPI_TYPE : HIF_EXEC_TASKLET_TYPE; + HIF_INFO("%s: create exec_type %d budget %d\n", + __func__, type, QCA_NAPI_BUDGET * scale); - HIF_INFO("%s: create exec_type %d budget %d\n", __func__, type, budget); switch (type) { case HIF_EXEC_NAPI_TYPE: - return hif_exec_napi_create(budget); + return hif_exec_napi_create(QCA_NAPI_BUDGET * scale); case HIF_EXEC_TASKLET_TYPE: return hif_exec_tasklet_create(); diff --git a/hif/src/hif_exec.h b/hif/src/hif_exec.h index 7334f17e2..a3e7ea175 100644 --- a/hif/src/hif_exec.h +++ b/hif/src/hif_exec.h @@ -107,7 +107,9 @@ static inline struct hif_tasklet_exec_context* return (struct hif_tasklet_exec_context *) ctx; } -struct hif_exec_context *hif_exec_create(enum hif_exec_type type); +struct hif_exec_context *hif_exec_create(enum hif_exec_type type, + uint32_t scale); + void hif_exec_destroy(struct hif_exec_context *ctx); int hif_grp_irq_configure(struct hif_softc *scn, |