From 9663bdca5cae0d2d67d6e9cf422a6b6119a24926 Mon Sep 17 00:00:00 2001 From: Shawn Nematbakhsh Date: Mon, 31 Jul 2017 15:37:29 -0700 Subject: [PATCH] timer: Add note about `forcetime` command being unsafe BUG=b:63909040 TEST=None BRANCH=None Change-Id: If1022655bc283377fa804e524d36ca0cca716250 Signed-off-by: Shawn Nematbakhsh Reviewed-on: https://chromium-review.googlesource.com/595042 Commit-Ready: Shawn N Tested-by: Shawn N Reviewed-by: Aseda Aboagye --- common/timer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/timer.c b/common/timer.c index 1e4b1911e2..da3feff404 100644 --- a/common/timer.c +++ b/common/timer.c @@ -275,6 +275,11 @@ DECLARE_CONSOLE_COMMAND(waitms, command_wait, #endif #ifdef CONFIG_CMD_FORCETIME +/* + * Force the hwtimer to a given time. This may have undesired consequences, + * especially when going "backward" in time, because task deadlines are + * left un-adjusted. + */ static int command_force_time(int argc, char **argv) { char *e;