summaryrefslogtreecommitdiff
path: root/arch/um/kernel
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2024-04-17 10:27:45 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-08-19 05:33:40 +0200
commitf4eee3607202144a29158848f325f9f08be85e10 (patch)
treebd98ab617864e063932d6f8b1edb429c8f6e29a0 /arch/um/kernel
parent9b3a4345957f5372041bc4f59de322f62653e862 (diff)
downloadlinux-f4eee3607202144a29158848f325f9f08be85e10.tar.gz
linux-f4eee3607202144a29158848f325f9f08be85e10.tar.bz2
linux-f4eee3607202144a29158848f325f9f08be85e10.zip
um: time-travel: fix time-travel-start option
[ Upstream commit 7d0a8a490aa3a2a82de8826aaf1dfa38575cb77a ] We need to have the = as part of the option so that the value can be parsed properly. Also document that it must be given in nanoseconds, not seconds. Fixes: 065038706f77 ("um: Support time travel mode") Link: https://patch.msgid.link/20240417102744.14b9a9d4eba0.Ib22e9136513126b2099d932650f55f193120cd97@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/um/kernel')
-rw-r--r--arch/um/kernel/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/kernel/time.c b/arch/um/kernel/time.c
index 94ea87bd231c..3ccbb42c171c 100644
--- a/arch/um/kernel/time.c
+++ b/arch/um/kernel/time.c
@@ -256,9 +256,9 @@ int setup_time_travel_start(char *str)
return 1;
}
-__setup("time-travel-start", setup_time_travel_start);
+__setup("time-travel-start=", setup_time_travel_start);
__uml_help(setup_time_travel_start,
-"time-travel-start=<seconds>\n"
+"time-travel-start=<nanoseconds>\n"
"Configure the UML instance's wall clock to start at this value rather than\n"
"the host's wall clock at the time of UML boot.\n");
#endif