diff options
-rw-r--r-- | arch/um/include/shared/timer-internal.h | 2 | ||||
-rw-r--r-- | arch/um/kernel/process.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/arch/um/include/shared/timer-internal.h b/arch/um/include/shared/timer-internal.h index 5ca74f415d52..8574338bf23b 100644 --- a/arch/um/include/shared/timer-internal.h +++ b/arch/um/include/shared/timer-internal.h | |||
@@ -54,6 +54,8 @@ static inline void time_travel_set_timer(enum time_travel_timer_mode mode, | |||
54 | unsigned long long expiry) | 54 | unsigned long long expiry) |
55 | { | 55 | { |
56 | } | 56 | } |
57 | |||
58 | #define time_travel_timer_mode TT_TMR_DISABLED | ||
57 | #endif | 59 | #endif |
58 | 60 | ||
59 | #endif | 61 | #endif |
diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c index def2091697ca..67c0d1a860e9 100644 --- a/arch/um/kernel/process.c +++ b/arch/um/kernel/process.c | |||
@@ -213,7 +213,7 @@ static void time_travel_sleep(unsigned long long duration) | |||
213 | if (time_travel_timer_mode != TT_TMR_DISABLED || | 213 | if (time_travel_timer_mode != TT_TMR_DISABLED || |
214 | time_travel_timer_expiry < next) { | 214 | time_travel_timer_expiry < next) { |
215 | if (time_travel_timer_mode == TT_TMR_ONESHOT) | 215 | if (time_travel_timer_mode == TT_TMR_ONESHOT) |
216 | time_travel_timer_mode = TT_TMR_DISABLED; | 216 | time_travel_set_timer(TT_TMR_DISABLED, 0); |
217 | /* | 217 | /* |
218 | * time_travel_time will be adjusted in the timer | 218 | * time_travel_time will be adjusted in the timer |
219 | * IRQ handler so it works even when the signal | 219 | * IRQ handler so it works even when the signal |