qcacmn: CONFIG_MCL cleanup for msg queue depth and reduction limit
Remove CONFIG_MCL for Serialization msg queue depth and reduction limit to make code generic. In case SCHEDULER_CORE_MAX_MESSAGES not defined, then define SCHEDULER_CORE_MAX_MESSAGES to 4000 for WIN . If WLAN_SCHED_REDUCTION_LIMIT not defined for MCL then define WLAN_SCHED_REDUCTION_LIMIT to 32 for WIN . Change-Id: If64f117f6f0af56f6a9e1041e583b022c6c419fb CRs-Fixed: 2457723
This commit is contained in:
@@ -24,10 +24,10 @@
|
|||||||
#include <scheduler_api.h>
|
#include <scheduler_api.h>
|
||||||
#include <qdf_list.h>
|
#include <qdf_list.h>
|
||||||
|
|
||||||
#ifdef CONFIG_MCL
|
#ifndef SCHEDULER_CORE_MAX_MESSAGES
|
||||||
#define SCHEDULER_CORE_MAX_MESSAGES 1000
|
|
||||||
#else
|
|
||||||
#define SCHEDULER_CORE_MAX_MESSAGES 4000
|
#define SCHEDULER_CORE_MAX_MESSAGES 4000
|
||||||
|
#endif
|
||||||
|
#ifndef WLAN_SCHED_REDUCTION_LIMIT
|
||||||
#define WLAN_SCHED_REDUCTION_LIMIT 32
|
#define WLAN_SCHED_REDUCTION_LIMIT 32
|
||||||
#endif
|
#endif
|
||||||
#define SCHEDULER_NUMBER_OF_MSG_QUEUE 6
|
#define SCHEDULER_NUMBER_OF_MSG_QUEUE 6
|
||||||
|
@@ -23,10 +23,6 @@
|
|||||||
static struct scheduler_ctx g_sched_ctx;
|
static struct scheduler_ctx g_sched_ctx;
|
||||||
static struct scheduler_ctx *gp_sched_ctx;
|
static struct scheduler_ctx *gp_sched_ctx;
|
||||||
|
|
||||||
#ifndef WLAN_SCHED_REDUCTION_LIMIT
|
|
||||||
#define WLAN_SCHED_REDUCTION_LIMIT 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
DEFINE_QDF_FLEX_MEM_POOL(sched_pool, sizeof(struct scheduler_msg),
|
DEFINE_QDF_FLEX_MEM_POOL(sched_pool, sizeof(struct scheduler_msg),
|
||||||
WLAN_SCHED_REDUCTION_LIMIT);
|
WLAN_SCHED_REDUCTION_LIMIT);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user