* + jiffies-add-time-comparison-functions-for-64-bit-jiffies.patch added to -mm tree
@ 2016-10-03 21:54 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2016-10-03 21:54 UTC (permalink / raw)
To: Jason, john.stultz, tglx, mm-commits
The patch titled
Subject: jiffies: add time comparison functions for 64 bit jiffies
has been added to the -mm tree. Its filename is
jiffies-add-time-comparison-functions-for-64-bit-jiffies.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/jiffies-add-time-comparison-functions-for-64-bit-jiffies.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/jiffies-add-time-comparison-functions-for-64-bit-jiffies.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: "Jason A. Donenfeld" <Jason@zx2c4.com>
Subject: jiffies: add time comparison functions for 64 bit jiffies
Though the time_before and time_after family of functions were nicely
extended to support jiffies64, so that the interface would be consistent,
it was forgotten to also extend the before/after jiffies functions to
support jiffies64. This commit brings the interface to parity between
jiffies and jiffies64, which is quite convenient.
Link: http://lkml.kernel.org/r/20160929033319.12188-1-Jason@zx2c4.com
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: John Stultz <john.stultz@linaro.org
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
include/linux/jiffies.h | 4 ++++
1 file changed, 4 insertions(+)
diff -puN include/linux/jiffies.h~jiffies-add-time-comparison-functions-for-64-bit-jiffies include/linux/jiffies.h
--- a/include/linux/jiffies.h~jiffies-add-time-comparison-functions-for-64-bit-jiffies
+++ a/include/linux/jiffies.h
@@ -150,15 +150,19 @@ static inline u64 get_jiffies_64(void)
/* time_is_before_jiffies(a) return true if a is before jiffies */
#define time_is_before_jiffies(a) time_after(jiffies, a)
+#define time_is_before_jiffies64(a) time_after64(get_jiffies_64(), a)
/* time_is_after_jiffies(a) return true if a is after jiffies */
#define time_is_after_jiffies(a) time_before(jiffies, a)
+#define time_is_after_jiffies64(a) time_before64(get_jiffies_64(), a)
/* time_is_before_eq_jiffies(a) return true if a is before or equal to jiffies*/
#define time_is_before_eq_jiffies(a) time_after_eq(jiffies, a)
+#define time_is_before_eq_jiffies64(a) time_after_eq64(get_jiffies_64(), a)
/* time_is_after_eq_jiffies(a) return true if a is after or equal to jiffies*/
#define time_is_after_eq_jiffies(a) time_before_eq(jiffies, a)
+#define time_is_after_eq_jiffies64(a) time_before_eq64(get_jiffies_64(), a)
/*
* Have the 32 bit jiffies value wrap 5 minutes after boot
_
Patches currently in -mm which might be from Jason@zx2c4.com are
jiffies-add-time-comparison-functions-for-64-bit-jiffies.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-10-03 21:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-03 21:54 + jiffies-add-time-comparison-functions-for-64-bit-jiffies.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.