diff options
author | Peter Marheine <pmarheine@chromium.org> | 2022-03-23 13:18:09 +1100 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-03-23 05:08:28 +0000 |
commit | 4a6ffc9768ef69983bc9b7ee11c6a002231b81a7 (patch) | |
tree | 786ccb57e04ec839dfe3a2c19727ad8502308e7b | |
parent | d495e7a0d7a72e787a610c780d044beec98ad2ba (diff) | |
download | chrome-ec-4a6ffc9768ef69983bc9b7ee11c6a002231b81a7.tar.gz |
nissa/nereid: reduce THREAD_MAX_NAME_LEN
The default value for this is 32 bytes, but none of our threads have names
longer than 11 characters. Reducing this to 12 saves 20 bytes per thread,
for total savings of 336 bytes (slightly less than 20 bytes per thread,
presumably due to struct alignment).
BUG=b:223044986
TEST=build & flash nereid, memory reduced and `kernel threads` still shows
full thread names.
BRANCH=none
Signed-off-by: Peter Marheine <pmarheine@chromium.org>
Change-Id: I9200e76894d1a0904732ae4a4e46e3dd2aadd672
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3544745
Reviewed-by: Andrew McRae <amcrae@google.com>
-rw-r--r-- | zephyr/projects/nissa/prj_nereid.conf | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zephyr/projects/nissa/prj_nereid.conf b/zephyr/projects/nissa/prj_nereid.conf index 29a7073f38..78b7bcced1 100644 --- a/zephyr/projects/nissa/prj_nereid.conf +++ b/zephyr/projects/nissa/prj_nereid.conf @@ -14,6 +14,8 @@ CONFIG_ESPI_IT8XXX2=y CONFIG_PLATFORM_EC_HOSTCMD_CONSOLE_BUF_SIZE=2048 # Default 1k, we mostly don't use Zephyr logging so utilization is low CONFIG_LOG_BUFFER_SIZE=512 +# Our threads have short names, save 20 bytes per thread +CONFIG_THREAD_MAX_NAME_LEN=12 # Task stacks, tuned by experiment. Most expanded to prevent overflow, and a few # shrunk to save RAM. CONFIG_TASK_KEYPROTO_STACK_SIZE=1024 |