um: time-travel: Fix periodic timers
authorJohannes Berg <johannes.berg@intel.com>
Tue, 10 Sep 2019 15:03:52 +0000 (17:03 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 15 Sep 2019 19:37:13 +0000 (21:37 +0200)
commiteec94b8acb03aaaa6fb050883624381f5c07a3f0
tree90e4a11640b16618d8180fc0af500be66dbbefc3
parent786b2384bf1c1b53dc23dc493aaaae29ef01e6ce
um: time-travel: Fix periodic timers

Periodic timers are broken, because the also only fire once.
As it happens, Linux doesn't care because it only sets the
timer to periodic very briefly during boot, and then switches
it only between one-shot and off later.

Nevertheless, fix the logic (we shouldn't even be looking at
time_travel_timer_expiry unless the timer is enabled) and
change the code to fire the timer periodically in periodic
mode, in case it ever gets used in the future.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/include/shared/timer-internal.h
arch/um/kernel/process.c
arch/um/kernel/time.c