mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
samus: decrease stack size for smaller tasks
Created a new smaller task size, 384, for tasks that don't need much stack space including PDCMD and ALS tasks. BUG=none BRANCH=none TEST=loaded on samus, ran taskinfo, made sure we were comfortbaly under the smaller task size for those tasks that changed. Change-Id: Icfa26eeaeed26171ec8b2d888e1190be32f688d1 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/202719 Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
committed by
chrome-internal-fetch
parent
d414c89a61
commit
7fb019e43c
@@ -18,12 +18,12 @@
|
||||
*/
|
||||
#define CONFIG_TASK_LIST \
|
||||
TASK_ALWAYS(HOOKS, hook_task, NULL, LARGER_TASK_STACK_SIZE) \
|
||||
TASK_NOTEST(ALS, als_task, NULL, TASK_STACK_SIZE) \
|
||||
TASK_NOTEST(ALS, als_task, NULL, SMALLER_TASK_STACK_SIZE) \
|
||||
TASK_NOTEST(LIGHTBAR, lightbar_task, NULL, LARGER_TASK_STACK_SIZE) \
|
||||
TASK_ALWAYS(CHARGER, charger_task, NULL, TASK_STACK_SIZE) \
|
||||
TASK_NOTEST(CHIPSET, chipset_task, NULL, TASK_STACK_SIZE) \
|
||||
TASK_NOTEST(KEYPROTO, keyboard_protocol_task, NULL, TASK_STACK_SIZE) \
|
||||
TASK_NOTEST(PDCMD, pd_command_task, NULL, TASK_STACK_SIZE) \
|
||||
TASK_NOTEST(PDCMD, pd_command_task, NULL, SMALLER_TASK_STACK_SIZE) \
|
||||
TASK_ALWAYS(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \
|
||||
TASK_ALWAYS(CONSOLE, console_task, NULL, LARGER_TASK_STACK_SIZE) \
|
||||
TASK_ALWAYS(POWERBTN, power_button_task, NULL, TASK_STACK_SIZE) \
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
/* non-standard task stack sizes */
|
||||
#define IDLE_TASK_STACK_SIZE 512
|
||||
#define LARGER_TASK_STACK_SIZE 768
|
||||
#define SMALLER_TASK_STACK_SIZE 384
|
||||
|
||||
/* Default task stack size */
|
||||
#define TASK_STACK_SIZE 512
|
||||
|
||||
Reference in New Issue
Block a user