diff options
author | Fabio Baltieri <fabiobaltieri@google.com> | 2021-04-28 10:38:39 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-28 16:15:39 +0000 |
commit | 74a7b366366e3786ef10d39cdec230a4537ebb54 (patch) | |
tree | 565de8b4dfe436a620b17d9f446c9302e5c9712a /zephyr | |
parent | 69f119754c43e8a720b04015234ce99a3a28fe82 (diff) | |
download | chrome-ec-74a7b366366e3786ef10d39cdec230a4537ebb54.tar.gz |
zephyr: Kconfig: disable CONFIG_TIMESLICING
This adds a Kconfig file for overriding Zephyr defaults and adds an
entry to disable CONFIG_TIMESLICING. The feature is compiled in by
default but not enabled, and we don't enable it at runtime. Compiling it
out saves a few bytes.
Before:
FLASH: 233760 B 512 KB 44.59%
SRAM: 48344 B 62 KB 76.15%
After:
FLASH: 233344 B 512 KB 44.51%
SRAM: 48328 B 62 KB 76.12%
BUG=b:183748844
BRANCH=none
TEST=build and run on volteer
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: I5587a553197ca0101e9d7047f6ce7a988dd0b36d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2854844
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Yuval Peress <peress@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Commit-Queue: Yuval Peress <peress@chromium.org>
Diffstat (limited to 'zephyr')
-rw-r--r-- | zephyr/Kconfig | 1 | ||||
-rw-r--r-- | zephyr/Kconfig.defaults | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/zephyr/Kconfig b/zephyr/Kconfig index 358ac691f1..a52fbd6e6e 100644 --- a/zephyr/Kconfig +++ b/zephyr/Kconfig @@ -38,6 +38,7 @@ rsource "Kconfig.board_version" rsource "Kconfig.console" rsource "Kconfig.console_cmd_mem" rsource "Kconfig.debug_assert" +rsource "Kconfig.defaults" rsource "Kconfig.espi" rsource "Kconfig.flash" rsource "Kconfig.header" diff --git a/zephyr/Kconfig.defaults b/zephyr/Kconfig.defaults new file mode 100644 index 0000000000..2b55e72156 --- /dev/null +++ b/zephyr/Kconfig.defaults @@ -0,0 +1,10 @@ +# Copyright 2021 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +# Zephyr Kconfig overrides that applies to all platforms. + +# Disable timeslicing, it's compiled in by default and can be enabled at +# runtime but not used in Zephyr EC. +config TIMESLICING + default n |