]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
um: time-travel: fix time-travel-start option
authorJohannes Berg <johannes.berg@intel.com>
Wed, 17 Apr 2024 08:27:45 +0000 (10:27 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 3 Jul 2024 10:21:16 +0000 (12:21 +0200)
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>
arch/um/kernel/time.c

index a8bfe8be15260bf52e1691b7819bdf45605ea948..5b5fd8f68d9c1988d79418cfa31d3b0444a86407 100644 (file)
@@ -875,9 +875,9 @@ static 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