qcacld-3.0: Add pre-alloc entries for datapath cfg event history
Add pre-alloc entries for datapath config events history, so that the memory for this history is pre-allocated and not freed on every wifi off. Change-Id: Iae1013c68a77d7da719400579af43369d9663163 CRs-Fixed: 3379157
This commit is contained in:

committed by
Madan Koyyalamudi

parent
56c9e8a47c
commit
61df77a203
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2017-2021 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. 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 above
|
||||
@@ -239,6 +239,32 @@ static struct dp_prealloc_context g_dp_context_allocs[] = {
|
||||
{DP_MON_PDEV_TYPE, sizeof(struct dp_mon_pdev),
|
||||
false, false, NULL},
|
||||
#endif
|
||||
#ifdef WLAN_FEATURE_DP_CFG_EVENT_HISTORY
|
||||
{DP_CFG_EVENT_HIST_TYPE,
|
||||
DP_CFG_EVT_HIST_PER_SLOT_MAX * sizeof(struct dp_cfg_event),
|
||||
false, false, NULL},
|
||||
{DP_CFG_EVENT_HIST_TYPE,
|
||||
DP_CFG_EVT_HIST_PER_SLOT_MAX * sizeof(struct dp_cfg_event),
|
||||
false, false, NULL},
|
||||
{DP_CFG_EVENT_HIST_TYPE,
|
||||
DP_CFG_EVT_HIST_PER_SLOT_MAX * sizeof(struct dp_cfg_event),
|
||||
false, false, NULL},
|
||||
{DP_CFG_EVENT_HIST_TYPE,
|
||||
DP_CFG_EVT_HIST_PER_SLOT_MAX * sizeof(struct dp_cfg_event),
|
||||
false, false, NULL},
|
||||
{DP_CFG_EVENT_HIST_TYPE,
|
||||
DP_CFG_EVT_HIST_PER_SLOT_MAX * sizeof(struct dp_cfg_event),
|
||||
false, false, NULL},
|
||||
{DP_CFG_EVENT_HIST_TYPE,
|
||||
DP_CFG_EVT_HIST_PER_SLOT_MAX * sizeof(struct dp_cfg_event),
|
||||
false, false, NULL},
|
||||
{DP_CFG_EVENT_HIST_TYPE,
|
||||
DP_CFG_EVT_HIST_PER_SLOT_MAX * sizeof(struct dp_cfg_event),
|
||||
false, false, NULL},
|
||||
{DP_CFG_EVENT_HIST_TYPE,
|
||||
DP_CFG_EVT_HIST_PER_SLOT_MAX * sizeof(struct dp_cfg_event),
|
||||
false, false, NULL},
|
||||
#endif
|
||||
};
|
||||
|
||||
static struct dp_consistent_prealloc g_dp_consistent_allocs[] = {
|
||||
|
Reference in New Issue
Block a user