From fca7e1e8545586fed5d1dfcd7e131468d4dc18a5 Mon Sep 17 00:00:00 2001 From: Jett Rink Date: Thu, 9 Jul 2020 15:59:41 -0600 Subject: 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 Change-Id: I6d0d3f4cf0ec9403c2e76a6ffbc068dd6554735a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2290833 --- common/system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/system.c') 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. */ -- cgit v1.2.1