add_timer() does not set owning process
This commit is contained in:
parent
19c8f9ffdd
commit
7cb8148226
|
@ -155,17 +155,17 @@ add_timer(struct etimer *timer)
|
||||||
etimer_request_poll();
|
etimer_request_poll();
|
||||||
|
|
||||||
if(timer->p != PROCESS_NONE) {
|
if(timer->p != PROCESS_NONE) {
|
||||||
/* Timer not on list. */
|
|
||||||
|
|
||||||
for(t = timerlist; t != NULL; t = t->next) {
|
for(t = timerlist; t != NULL; t = t->next) {
|
||||||
if(t == timer) {
|
if(t == timer) {
|
||||||
/* Timer already on list, bail out. */
|
/* Timer already on list, bail out. */
|
||||||
|
timer->p = PROCESS_CURRENT();
|
||||||
update_time();
|
update_time();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Timer not on list. */
|
||||||
timer->p = PROCESS_CURRENT();
|
timer->p = PROCESS_CURRENT();
|
||||||
timer->next = timerlist;
|
timer->next = timerlist;
|
||||||
timerlist = timer;
|
timerlist = timer;
|
||||||
|
|
Loading…
Reference in a new issue