Skip to content

Commit

Permalink
um: Fix time-travel mode
Browse files Browse the repository at this point in the history
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.

Cc: [email protected]
Fixes: 4b786e2 ("um: time-travel: Rewrite as an event scheduler")
Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>
  • Loading branch information
jmberg-intel authored and richardweinberger committed Dec 13, 2020
1 parent 97be7ce commit ff9632d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions arch/um/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
return;

Expand Down

0 comments on commit ff9632d

Please sign in to comment.