timer: Add note about forcetime command being unsafe

BUG=b:63909040
TEST=None
BRANCH=None

Change-Id: If1022655bc283377fa804e524d36ca0cca716250
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/595042
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
This commit is contained in:
Shawn Nematbakhsh
2017-07-31 15:37:29 -07:00
committed by chrome-bot
parent fe0a3b99ff
commit 9663bdca5c

View File

@@ -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;