]> asedeno.scripts.mit.edu Git - linux.git/commit
um: fix os_timer_one_shot()
authorJohannes Berg <johannes.berg@intel.com>
Mon, 6 May 2019 12:39:37 +0000 (14:39 +0200)
committerRichard Weinberger <richard@nod.at>
Tue, 2 Jul 2019 21:26:57 +0000 (23:26 +0200)
commitfcd242c6c835dff4b5334b4db870f9fc23a8e7b7
tree0c16a8cc8d006b45e6eba9d5cf32c084c427a793
parentbebe4681d0e7e1be2608282dc86645728bc7f623
um: fix os_timer_one_shot()

os_timer_one_shot() gets passed a value "unsigned long delta",
so must not have an "int ticks" as that actually ends up being
-1, and thus triggering a timer over and over again.

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