diff options
author | Johannes Berg <johannes.berg@intel.com> | 2019-05-06 08:39:37 -0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2019-07-02 17:26:57 -0400 |
commit | fcd242c6c835dff4b5334b4db870f9fc23a8e7b7 (patch) | |
tree | 0c16a8cc8d006b45e6eba9d5cf32c084c427a793 /arch/um/include | |
parent | bebe4681d0e7e1be2608282dc86645728bc7f623 (diff) |
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/include')
-rw-r--r-- | arch/um/include/shared/os.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/include/shared/os.h b/arch/um/include/shared/os.h index ebf23012a59b..d579adcb2690 100644 --- a/arch/um/include/shared/os.h +++ b/arch/um/include/shared/os.h | |||
@@ -252,7 +252,7 @@ extern void os_warn(const char *fmt, ...) | |||
252 | extern void os_idle_sleep(unsigned long long nsecs); | 252 | extern void os_idle_sleep(unsigned long long nsecs); |
253 | extern int os_timer_create(void* timer); | 253 | extern int os_timer_create(void* timer); |
254 | extern int os_timer_set_interval(void* timer, void* its); | 254 | extern int os_timer_set_interval(void* timer, void* its); |
255 | extern int os_timer_one_shot(int ticks); | 255 | extern int os_timer_one_shot(unsigned long ticks); |
256 | extern long long os_timer_disable(void); | 256 | extern long long os_timer_disable(void); |
257 | extern long os_timer_remain(void* timer); | 257 | extern long os_timer_remain(void* timer); |
258 | extern void uml_idle_timer(void); | 258 | extern void uml_idle_timer(void); |