Skip to contentSkip to conversation

kernel-timerc-fix-jiffies-wrap-behavior-of-round_jiffies.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 3, 2013

lore
Share & tools
lore
#0 lore raw

Subject: [merged] kernel-timerc-fix-jiffies-wrap-behavior-of-round_jiffies.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 03 Jul 2013 12:32:21 -0700

The patch titled
Subject: kernel/timer.c: fix jiffies wrap behavior of round_jiffies*()
has been removed from the -mm tree. Its filename was
kernel-timerc-fix-jiffies-wrap-behavior-of-round_jiffies.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Bart Van Assche <[email protected]>
Subject: kernel/timer.c: fix jiffies wrap behavior of round_jiffies*()

Make sure that the round_jiffies*() functions return a time that is in the future when the jiffies counter has recently wrapped.

Cc Thomas Gleixner <[email protected]>
Cc Arjan van de Ven <[email protected]>
Cc Stephen Rothwell <[email protected]>

---

 kernel/timer.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
kernel/timer.c renamed from kernel/timer.c~kernel-timerc-fix-jiffies-wrap-behavior-of-round_jiffies +1 -3
diff -puN kernel/timer.c~kernel-timerc-fix-jiffies-wrap-behavior-of-round_jiffies kernel/timer.c
@@ -149,9 +149,7 @@ static unsigned long round_jiffies_commo
 	/* now that we have rounded, subtract the extra skew again */
 	j -= cpu * 3;
 
-	if (j <= jiffies) /* rounding ate our timeout entirely; */
-		return original;
-	return j;
+	return time_is_after_jiffies(j) ? j : original;
 }
 
 /**

_

Patches currently in -mm which might be from [email protected] are

linux-next.patch