mirror of
https://github.com/schoebel/mars
synced 2025-02-18 13:06:58 +00:00
fix brick_timeout() once again
This commit is contained in:
parent
0eb4e62ecb
commit
19718efb83
10
brick.c
10
brick.c
@ -20,11 +20,13 @@ int brick_msleep(int msecs, bool shorten)
|
||||
return 0;
|
||||
}
|
||||
timeout = msecs_to_jiffies(msecs) + 1;
|
||||
if (shorten)
|
||||
timeout = schedule_timeout_interruptible(timeout);
|
||||
else
|
||||
|
||||
timeout = schedule_timeout_interruptible(timeout);
|
||||
|
||||
if (!shorten)
|
||||
while (timeout)
|
||||
timeout = schedule_timeout_interruptible(timeout);
|
||||
timeout = schedule_timeout_uninterruptible(timeout);
|
||||
|
||||
return jiffies_to_msecs(timeout);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(brick_msleep);
|
||||
|
Loading…
Reference in New Issue
Block a user