mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 13:47:56 +00:00
dde_linux: fix mod_delayed_work(delay)
'delay' is a relative timeout while mod_timer() needs an absolute point in time.
This commit is contained in:
parent
2b649cb633
commit
64c8b06377
@ -702,7 +702,7 @@ bool mod_delayed_work(struct workqueue_struct *wq, struct delayed_work *dwork,
|
|||||||
setup_timer(&dwork->timer, execute_delayed_work,
|
setup_timer(&dwork->timer, execute_delayed_work,
|
||||||
(unsigned long)dwork);
|
(unsigned long)dwork);
|
||||||
}
|
}
|
||||||
mod_timer(&dwork->timer, delay);
|
mod_timer(&dwork->timer, jiffies + delay);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -1437,7 +1437,7 @@ bool mod_delayed_work(struct workqueue_struct *wq, struct delayed_work *dwork,
|
|||||||
if (delay == 0) {
|
if (delay == 0) {
|
||||||
execute_delayed_work((unsigned long)dwork);
|
execute_delayed_work((unsigned long)dwork);
|
||||||
} else {
|
} else {
|
||||||
mod_timer(&dwork->timer, delay);
|
mod_timer(&dwork->timer, jiffies + delay);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user