Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b482e48d authored by Johannes Berg's avatar Johannes Berg Committed by Richard Weinberger
Browse files

um: fix build without CONFIG_UML_TIME_TRAVEL_SUPPORT



When CONFIG_UML_TIME_TRAVEL_SUPPORT isn't set, the build was broken.
Fix this.

Fixes: 06503870 ("um: Support time travel mode")
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent c4683cd5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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