mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
UPSTREAM: um: Fix time-travel mode
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. Bug: 176213565 Cc: stable@vger.kernel.org Fixes:4b786e24ca("um: time-travel: Rewrite as an event scheduler") Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Richard Weinberger <richard@nod.at> (cherry picked from commitff9632d2a6) Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: Iea83a52a7dff6514df64cbd35a71e6b2c186450d
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b4b0c57826
commit
f8b03b519a
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user