summaryrefslogtreecommitdiff
path: root/include/config.h
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@chromium.org>2017-09-11 14:07:33 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-09-12 16:17:08 -0700
commit1bece4ee08aa8505e9613e614fc75d254ad5cd40 (patch)
tree75813235b36991653228489a5b07297c01b21364 /include/config.h
parent5ec58b35f1d7ee8284231bd4dc3d96b3d517b061 (diff)
downloadchrome-ec-1bece4ee08aa8505e9613e614fc75d254ad5cd40.tar.gz
port80: Disable default print of port80 messages in interrupt context
1. Add a new config option CONFIG_PORT80_PRINT_IN_INT which is disabled by default to disable printing of port80 messages in interrupt context. 2. If CONFIG_BRINGUP is defined, redefine CONFIG_PORT80_PRINT_IN_INT to enable printing of port80 messages in interrupt context for boards that are in bringup phase. 3. If print_in_int is disabled, add a deferred call to dump port80 buffer to EC console 4 seconds after the last port80 message is received. BUG=b:64196191 BRANCH=None TEST=Verified following: 1. make -j buildall 2. Port80 messages are not printed by default on Soraka 3. Port80 buffer is dumped 4 seconds after last port80 message, if BIOS is stuck for 4 seconds, in recovery mode and when reboot from AP console. 4. Boot time on soraka went down from ~1.59seconds to ~1.45 seconds in EC reboot case (savings of ~140ms). Change-Id: I9aee0987765f905b4ac49d04ffc54d71ee3a04f9 Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/661880 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 92eaf48dc8..1cea53e9f3 100644
--- a/include/config.h
+++ b/include/config.h
@@ -1920,6 +1920,12 @@
*/
#undef CONFIG_POLLING_UART
+/*
+ * Enable/Disable printing of port80 messages in interrupt context. By default,
+ * this is disabled.
+ */
+#define CONFIG_PORT80_PRINT_IN_INT 0
+
/* Compile common code to support power button debouncing */
#undef CONFIG_POWER_BUTTON