mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 08:25:38 +00:00
parent
7e69013e0c
commit
36bcc69faf
@ -342,7 +342,6 @@ static void unblock_task(unsigned long task)
|
||||
|
||||
signed long schedule_timeout(signed long timeout)
|
||||
{
|
||||
long start = jiffies;
|
||||
struct timer_list timer;
|
||||
|
||||
setup_timer(&timer, unblock_task, (unsigned long)Lx::scheduler().current());
|
||||
@ -352,7 +351,7 @@ signed long schedule_timeout(signed long timeout)
|
||||
|
||||
del_timer(&timer);
|
||||
|
||||
timeout -= (jiffies - start);
|
||||
timeout = (timeout - jiffies);
|
||||
|
||||
return timeout < 0 ? 0 : timeout;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user