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>
This commit is contained in:

committed by
Richard Weinberger

parent
bebe4681d0
commit
fcd242c6c8
@@ -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;
|
||||
|
Reference in New Issue
Block a user