summaryrefslogtreecommitdiff
path: root/common/system.c
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2020-07-09 15:59:41 -0600
committerJett Rink <jettrink@chromium.org>2020-07-09 22:01:28 +0000
commitfca7e1e8545586fed5d1dfcd7e131468d4dc18a5 (patch)
tree945bc0120247dea1b309b70656d7c77b3f88566c /common/system.c
parent32ce0b8f44f4e4d07ba13f2dcefd59db08224044 (diff)
downloadchrome-ec-fca7e1e8545586fed5d1dfcd7e131468d4dc18a5.tar.gz
system: correct incorrect sleep
We are using msleep instead of usleep, so we don't need to multiply by MSEC BRANCH=none BUG=none TEST= verify that sleep is only 20 msec and that it is enough to reset power Signed-off-by: Jett Rink <jettrink@chromium.org> Change-Id: I6d0d3f4cf0ec9403c2e76a6ffbc068dd6554735a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2290833
Diffstat (limited to 'common/system.c')
-rw-r--r--common/system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/system.c b/common/system.c
index 333ca2d26e..38c824640e 100644
--- a/common/system.c
+++ b/common/system.c
@@ -888,7 +888,7 @@ static int handle_pending_reboot(enum ec_reboot_cmd cmd)
* Give enough time to apply CC Open and brown out if
* we are running with out a battery.
*/
- msleep(20 * MSEC);
+ msleep(20);
}
/* Reset external PD chips. */