um: time-travel: Restrict time update in IRQ handler
authorJohannes Berg <johannes.berg@intel.com>
Tue, 10 Sep 2019 15:03:53 +0000 (17:03 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 15 Sep 2019 19:37:13 +0000 (21:37 +0200)
commit278911ee89fa0f35127c0194010ffe2c17c2e3af
treef4a92533886f20c19d1e15ebde453c6fab6c6fb9
parenteec94b8acb03aaaa6fb050883624381f5c07a3f0
um: time-travel: Restrict time update in IRQ handler

We currently do the time updates in the timer handler, even if
we just call the timer handler ourselves. In basic mode we must
in fact do it there since otherwise the OS timer signal won't
move time forward, but in inf-cpu mode we don't need to, and
it's harder to understand.

Restrict the update there to basic mode, adding a comment, and
do it before calling the timer_handler() in inf-cpu mode.

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