Skip to content

Commit 7d0a8a4

Browse files
committed
um: time-travel: fix time-travel-start option
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: 0650387 ("um: Support time travel mode") Link: https://patch.msgid.link/20240417102744.14b9a9d4eba0.Ib22e9136513126b2099d932650f55f193120cd97@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent ddd268c commit 7d0a8a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/um/kernel/time.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -875,9 +875,9 @@ static int setup_time_travel_start(char *str)
875875
return 1;
876876
}
877877

878-
__setup("time-travel-start", setup_time_travel_start);
878+
__setup("time-travel-start=", setup_time_travel_start);
879879
__uml_help(setup_time_travel_start,
880-
"time-travel-start=<seconds>\n"
880+
"time-travel-start=<nanoseconds>\n"
881881
"Configure the UML instance's wall clock to start at this value rather than\n"
882882
"the host's wall clock at the time of UML boot.\n");
883883
#endif

0 commit comments

Comments
 (0)