Skip to content

Commit

Permalink
um: fix build without CONFIG_UML_TIME_TRAVEL_SUPPORT
Browse files Browse the repository at this point in the history
When CONFIG_UML_TIME_TRAVEL_SUPPORT isn't set, the build was broken.
Fix this.

Fixes: 0650387 ("um: Support time travel mode")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
  • Loading branch information
Johannes Berg authored and Richard Weinberger committed Jul 4, 2019
1 parent c4683cd commit b482e48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions arch/um/include/shared/timer-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ static inline void time_travel_set_timer(enum time_travel_timer_mode mode,
unsigned long long expiry)
{
}

#define time_travel_timer_mode TT_TMR_DISABLED
#endif

#endif
2 changes: 1 addition & 1 deletion arch/um/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ static void time_travel_sleep(unsigned long long duration)
if (time_travel_timer_mode != TT_TMR_DISABLED ||
time_travel_timer_expiry < next) {
if (time_travel_timer_mode == TT_TMR_ONESHOT)
time_travel_timer_mode = TT_TMR_DISABLED;
time_travel_set_timer(TT_TMR_DISABLED, 0);
/*
* time_travel_time will be adjusted in the timer
* IRQ handler so it works even when the signal
Expand Down

0 comments on commit b482e48

Please sign in to comment.