diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2016-10-04 11:22:39 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-10-08 01:04:46 -0700 |
commit | e19c5ab4672649feef976c3036063610540605db (patch) | |
tree | 8ae02754d0a7e1fe10d6597de4b089d9c8b5a1a7 /common/host_event_commands.c | |
parent | ce92dd27dfa2b60cf4443da5eb47c51d8c7170bf (diff) | |
download | chrome-ec-e19c5ab4672649feef976c3036063610540605db.tar.gz |
mkbp: compile host_get_next_event out in LPC mode
When we are using MKBP in LPC mode, user event are not sent over MKBP.
Therefore, we can remove host_get_next_event, it will never been called.
BUG=none
BRANCH=none
TEST=compile
Change-Id: Ia6de611291648bd3f394a20b02072b1787cca7ac
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/394069
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'common/host_event_commands.c')
-rw-r--r-- | common/host_event_commands.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/host_event_commands.c b/common/host_event_commands.c index 57365501bc..5d393d0b6a 100644 --- a/common/host_event_commands.c +++ b/common/host_event_commands.c @@ -78,6 +78,7 @@ void host_clear_events(uint32_t mask) #endif /* !CONFIG_LPC */ } +#ifndef CONFIG_LPC static int host_get_next_event(uint8_t *out) { uint32_t event_out = events; @@ -86,6 +87,7 @@ static int host_get_next_event(uint8_t *out) return sizeof(event_out); } DECLARE_EVENT_SOURCE(EC_MKBP_EVENT_HOST_EVENT, host_get_next_event); +#endif /** * Clear one or more host event bits from copy B. @@ -117,7 +119,6 @@ test_mockable void host_throttle_cpu(int throttle) /*****************************************************************************/ /* Console commands */ - static int command_host_event(int argc, char **argv) { /* Handle sub-commands */ |