summaryrefslogtreecommitdiff
path: root/scheduler
diff options
context:
space:
mode:
authorVivek <vchettri@codeaurora.org>2017-12-27 15:14:30 +0530
committersnandini <snandini@codeaurora.org>2018-01-09 06:12:44 -0800
commitf227fb7417bd8f9ec0db40caeedb4abfac1f67a3 (patch)
tree612df01410ad4983eff4d5d7671b2b3b57b10394 /scheduler
parent7c6b803c4f0763ea9c3c1b77247104ef7b0adab6 (diff)
downloadqca-wfi-host-cmn-f227fb7417bd8f9ec0db40caeedb4abfac1f67a3.tar.gz
qcacmn: Reduce the number of scheduler message buffers for WIN
Reduced the number of scheduler message buffers for WIN to 2k from 4k since WIN is only using 2 scheduler queues. Changed the order of two members of scheduler messgae structure to avoid additional padding on 64bit platform. Change-Id: Ic74d60878867c45413bc4fbd5c56feb4dd421699 CRs-Fixed: 2157621
Diffstat (limited to 'scheduler')
-rw-r--r--scheduler/inc/scheduler_api.h4
-rw-r--r--scheduler/inc/scheduler_core.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/scheduler/inc/scheduler_api.h b/scheduler/inc/scheduler_api.h
index 4d9fabd83..4619d491c 100644
--- a/scheduler/inc/scheduler_api.h
+++ b/scheduler/inc/scheduler_api.h
@@ -62,12 +62,12 @@ typedef enum {
* struct scheduler_msg: scheduler message structure
* @type: message type
* @reserved: reserved field
+ * @bodyval: message body val
* @bodyptr: message body pointer based on the type either a bodyptr pointer
* into memory or bodyval as a 32 bit data is used. bodyptr is always a
* freeable pointer, one should always make sure that bodyptr is always
* freeable.
* Messages should use either bodyptr or bodyval; not both !!!
- * @bodyval: message body val
* @callback: callback to be called by scheduler thread once message is posted
* and scheduler thread has started processing the message.
* @flush_callback: flush callback which will be invoked during driver unload
@@ -79,8 +79,8 @@ typedef enum {
struct scheduler_msg {
uint16_t type;
uint16_t reserved;
- void *bodyptr;
uint32_t bodyval;
+ void *bodyptr;
void *callback;
void *flush_callback;
};
diff --git a/scheduler/inc/scheduler_core.h b/scheduler/inc/scheduler_core.h
index fcdf15409..191a6ecea 100644
--- a/scheduler/inc/scheduler_core.h
+++ b/scheduler/inc/scheduler_core.h
@@ -32,7 +32,11 @@
#include <scheduler_api.h>
#include <qdf_list.h>
+#ifdef CONFIG_MCL
#define SCHEDULER_CORE_MAX_MESSAGES 8000
+#else
+#define SCHEDULER_CORE_MAX_MESSAGES 2000
+#endif
#define SCHEDULER_NUMBER_OF_MSG_QUEUE 5
#define SCHEDULER_WRAPPER_MAX_FAIL_COUNT (SCHEDULER_CORE_MAX_MESSAGES * 3)
#define SCHEDULER_WATCHDOG_TIMEOUT (10 * 1000) /* 10s */