diff mbox series

um: fix time-travel mode

Message ID 20201120210848.f17108c78a7d.I92463af4568758150390ef9e450edabff42c87f3@changeid
State New
Headers show
Series um: fix time-travel mode | expand

Commit Message

Johannes Berg Nov. 20, 2020, 8:08 p.m. UTC
From: Johannes Berg <johannes.berg@intel.com>

Since the time-travel rework, basic time-travel mode hasn't worked
properly, but there's no longer a need for this WARN_ON() so just
remove it and thereby fix things.

Fixes: 4b786e24ca80 ("um: time-travel: Rewrite as an event scheduler")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
 arch/um/kernel/time.c | 5 -----
 1 file changed, 5 deletions(-)
diff mbox series


diff --git a/arch/um/kernel/time.c b/arch/um/kernel/time.c
index 3d109ff3309b..8dafc3f2add4 100644
--- a/arch/um/kernel/time.c
+++ b/arch/um/kernel/time.c
@@ -260,11 +260,6 @@  static void __time_travel_add_event(struct time_travel_event *e,
 	struct time_travel_event *tmp;
 	bool inserted = false;
-	if (WARN(time_travel_mode == TT_MODE_BASIC &&
-		 e != &time_travel_timer_event,
-		 "only timer events can be handled in basic mode"))
-		return;
 	if (e->pending)