diff options
author | Nicolas Boichat <drinkcat@google.com> | 2017-07-12 17:07:27 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-07-17 21:27:14 -0700 |
commit | cc6662135d38f1544d655cf1d4d0f1f3e3d059b7 (patch) | |
tree | 588520f37b159f82f7cccc4bebbaa702abd9170d /board/hammer/ec.tasklist | |
parent | 412093d046ec6eab64798f70bff98c8865f709d3 (diff) | |
download | chrome-ec-cc6662135d38f1544d655cf1d4d0f1f3e3d059b7.tar.gz |
hammer: Enable Link-Time-Optimization CONFIG_LTO
We need to add __keep to the USB descriptors, otherwise they
get thrown away.
Also, for some reason the optimized RWSIG task uses a little bit
more stack space, so account for that:
1 RWSIG 00000000 0.264350 1096/2048
BRANCH=none
BUG=b:63610290
TEST=make BOARD=hammer -j
make newsizes
build/hammer/RO/ec.RO.flat shrank by 2052 bytes: (37336 to 35284)
build/hammer/RW/ec.RW.flat shrank by 3172 bytes: (50508 to 47336)
Flash hammer, touchpad, keyboard, update all still work fine.
Change-Id: I39ffd320dae883596ce481efc4adec6e3c23000b
Reviewed-on: https://chromium-review.googlesource.com/567909
Commit-Ready: Nicolas Boichat <drinkcat@chromium.org>
Tested-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'board/hammer/ec.tasklist')
-rw-r--r-- | board/hammer/ec.tasklist | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/hammer/ec.tasklist b/board/hammer/ec.tasklist index 06ff3e0c1d..0cbc39dbf6 100644 --- a/board/hammer/ec.tasklist +++ b/board/hammer/ec.tasklist @@ -17,7 +17,7 @@ * 's' is the stack size in bytes; must be a multiple of 8 */ #define CONFIG_TASK_LIST \ - TASK_ALWAYS_RO(RWSIG, rwsig_task, NULL, 1024) \ + TASK_ALWAYS_RO(RWSIG, rwsig_task, NULL, 1280) \ TASK_ALWAYS (HOOKS, hook_task, NULL, 2048) \ TASK_ALWAYS_RW(TOUCHPAD, elan_tp_task, NULL, TASK_STACK_SIZE) \ TASK_ALWAYS (CONSOLE, console_task, NULL, 1024) \ |