Commit 73d429f9 authored by Tim Schmielau's avatar Tim Schmielau Committed by David Mosberger

[PATCH] fix compares of jiffies

I found some places where jiffies
were compared in a way that seems to break when they wrap. For these,
I made up patches to use the macros time_before() or time_after()
that are supposed to handle wraparound correctly.
parent e761e9ff
......@@ -250,7 +250,7 @@ bte_copy(u64 src, u64 dest, u64 len, u64 mode, void *notification)
* status register into the notification area.
* This fakes the shub performing the copy.
*/
if (jiffies > bte->idealTransferTimeout) {
if (time_after(jiffies, bte->idealTransferTimeout)) {
bte->notify = HUB_L(bte->bte_base_addr);
bte->idealTransferTimeoutReached++;
bte->idealTransferTimeout = jiffies +
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment