* [PATCH v3] backports: add ktime_get_boot_ns()
@ 2015-12-15 10:27 Johannes Berg
2015-12-21 0:10 ` Hauke Mehrtens
0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2015-12-15 10:27 UTC (permalink / raw)
To: backports; +Cc: Johannes Berg
From: Johannes Berg <johannes.berg@intel.com>
This small helper inline was added in 3.17, we want to use it now
so need to backport it.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
backport/backport-include/linux/timekeeping.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/backport/backport-include/linux/timekeeping.h b/backport/backport-include/linux/timekeeping.h
index fe42e7170680..db90a0a139b5 100644
--- a/backport/backport-include/linux/timekeeping.h
+++ b/backport/backport-include/linux/timekeeping.h
@@ -15,6 +15,12 @@ static inline u64 ktime_get_ns(void)
{
return ktime_to_ns(ktime_get());
}
+
+extern ktime_t ktime_get_boottime(void);
+static inline u64 ktime_get_boot_ns(void)
+{
+ return ktime_to_ns(ktime_get_boottime());
+}
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0)
--
2.6.2
--
To unsubscribe from this list: send the line "unsubscribe backports" in
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v3] backports: add ktime_get_boot_ns()
2015-12-15 10:27 [PATCH v3] backports: add ktime_get_boot_ns() Johannes Berg
@ 2015-12-21 0:10 ` Hauke Mehrtens
0 siblings, 0 replies; 3+ messages in thread
From: Hauke Mehrtens @ 2015-12-21 0:10 UTC (permalink / raw)
To: Johannes Berg, backports; +Cc: Johannes Berg
On 12/15/2015 11:27 AM, Johannes Berg wrote:
> From: Johannes Berg <johannes.berg@intel.com>
>
> This small helper inline was added in 3.17, we want to use it now
> so need to backport it.
>
> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
> ---
> backport/backport-include/linux/timekeeping.h | 6 ++++++
> 1 file changed, 6 insertions(+)
Thank you for the patch, it was applied and pushed out.
Hauke
--
To unsubscribe from this list: send the line "unsubscribe backports" in
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v3] backports: add ktime_get_boot_ns()
@ 2015-12-07 12:51 Johannes Berg
0 siblings, 0 replies; 3+ messages in thread
From: Johannes Berg @ 2015-12-07 12:51 UTC (permalink / raw)
To: backports; +Cc: Johannes Berg
From: Johannes Berg <johannes.berg@intel.com>
This small helper inline was added in 3.17, we want to use it now
so need to backport it.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
backport/backport-include/linux/timekeeping.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/backport/backport-include/linux/timekeeping.h b/backport/backport-include/linux/timekeeping.h
index fe42e7170680..db90a0a139b5 100644
--- a/backport/backport-include/linux/timekeeping.h
+++ b/backport/backport-include/linux/timekeeping.h
@@ -15,6 +15,12 @@ static inline u64 ktime_get_ns(void)
{
return ktime_to_ns(ktime_get());
}
+
+extern ktime_t ktime_get_boottime(void);
+static inline u64 ktime_get_boot_ns(void)
+{
+ return ktime_to_ns(ktime_get_boottime());
+}
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0)
--
2.6.2
--
To unsubscribe from this list: send the line "unsubscribe backports" in
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-12-21 0:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-15 10:27 [PATCH v3] backports: add ktime_get_boot_ns() Johannes Berg
2015-12-21 0:10 ` Hauke Mehrtens
-- strict thread matches above, loose matches on Subject: below --
2015-12-07 12:51 Johannes Berg
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.