aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/os-Linux/time.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2019-05-06 14:39:37 +0200
committerRichard Weinberger <richard@nod.at>2019-07-02 23:26:57 +0200
commitfcd242c6c835dff4b5334b4db870f9fc23a8e7b7 (patch)
tree0c16a8cc8d006b45e6eba9d5cf32c084c427a793 /arch/um/os-Linux/time.c
parentum: Fix IRQ controller regression on console read (diff)
downloadlinux-dev-fcd242c6c835dff4b5334b4db870f9fc23a8e7b7.tar.xz
linux-dev-fcd242c6c835dff4b5334b4db870f9fc23a8e7b7.zip
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>
Diffstat (limited to 'arch/um/os-Linux/time.c')
-rw-r--r--arch/um/os-Linux/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/os-Linux/time.c b/arch/um/os-Linux/time.c
index 0e39b9978729..b28cc35da21f 100644
--- a/arch/um/os-Linux/time.c
+++ b/arch/um/os-Linux/time.c
@@ -113,7 +113,7 @@ long os_timer_remain(void* timer)
return its.it_value.tv_nsec;
}
-int os_timer_one_shot(int ticks)
+int os_timer_one_shot(unsigned long ticks)
{
struct itimerspec its;
unsigned long long nsec;