summaryrefslogtreecommitdiff
path: root/backport/backport-include/linux/timekeeping.h
AgeCommit message (Collapse)Author
2019-02-22backports: support 3.1 and 3.10 tegra kernelsDominik Sliwa
Changes specific to vendor kernels Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com>
2018-09-24backport: add ktime_get_raw_ts64() backport for < 3.19Luca Coelho
The getrawmonotonic64() function that is used by the ktime_get_raw_ts64() backport was only introduced in 3.19. To fix compilation with earlier kernels, do the convertion from getrawmonotonic() manually if the kernel is < 3.19. Additionally, add timespec_to_timespec64() that we need for this conversion (and which was only introduced in 3.17). Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-09-24backport: make ktime_get_boottime_seconds() non-inlineLuca Coelho
With kernels < 3.17, we need to include hrtimer.h to get ktime_divns() for the ktime_get_boottime_seconds() backport. But we can't just include htrtimer.h in the backport timekeeping.h because we run into some cyclical inclusions that cause problems. To solve that make ktime_get_boottime_seconds() non-inline and add it to a new backport-4.18.c file. Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-09-19header: Add ktime_get_raw_ts64()Hauke Mehrtens
ktime_get_raw_ts64() uses the old function which was renamed. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> [fix typo in commit message] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-09-10backport-include: backport ktime_get_boottime_secondsFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-03-21header: timekeeping.h: Add ktime_get_ts64()Hauke Mehrtens
This function was added in commit d6d29896c665d ("timekeeping: Provide timespec64 based interfaces"). We can just use the 32 bit version instated as the rest was already backported in backports commit ea8b7cd797ca0c ("backports: deal with struct timespec64 changes)". Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-03-21header: timekeeping.h: Add ktime_get_real_seconds()Hauke Mehrtens
This function was added in commit dbe7aa622db96b ("timekeeping: Provide y2038 safe accessor to the seconds portion of CLOCK_REALTIME") and is used by multiple realtek drivers. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-02-23backports: fix typo "TIMKEEPING" and fix gfp.hLuca Coelho
There is a typo in the timekeeping.h backport, fix that. Additionally, fix the gfp.h file tha has a copy/paste issue where __BACKPORT_TIMKEEPING_H is used instead of __BACKPORT_LINUX_GFP_H. Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-09backports: always use new version compare macrosJohannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2015-12-20backports: add ktime_get_boot_ns()Johannes Berg
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> [add LINUX_BACKPORT] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2015-11-07header: add ktime_get_ns()Hauke Mehrtens
We also have to add the prototype of ktime_t ktime_get(), because including linux/hrtimer.h caused some strange build errors. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2015-11-07backports: add ktime_get_seconds()Johannes Berg
Since commit 84b00607aeb8 ("mac80211: use ktime_get_seconds") mac80211 uses ktime_get_seconds(). This patch provide a backport using ktime_get_ts() for it. [commit message and time64_t taken from Arend's patch] Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>