diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2014-07-16 17:05:01 -0400 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2014-07-23 18:01:48 -0400 |
commit | 61edec81d260bc96a73c878bbdb4c614460346da (patch) | |
tree | a683a37b4e6be8b1b5bea1a1fb1b509d94274fe7 /include/linux/timekeeping.h | |
parent | 47da70d32535000ec29cc206cfc1d318fbd8761f (diff) |
timekeeping: Simplify timekeeping_clocktai()
timekeeping_clocktai() is not used in fast pathes, so the extra
timespec conversion is not problematic.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'include/linux/timekeeping.h')
-rw-r--r-- | include/linux/timekeeping.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/timekeeping.h b/include/linux/timekeeping.h index 7b8f20007871..f0f12a84a31b 100644 --- a/include/linux/timekeeping.h +++ b/include/linux/timekeeping.h | |||
@@ -166,6 +166,11 @@ static inline void get_monotonic_boottime(struct timespec *ts) | |||
166 | *ts = ktime_to_timespec(ktime_get_boottime()); | 166 | *ts = ktime_to_timespec(ktime_get_boottime()); |
167 | } | 167 | } |
168 | 168 | ||
169 | static inline void timekeeping_clocktai(struct timespec *ts) | ||
170 | { | ||
171 | *ts = ktime_to_timespec(ktime_get_clocktai()); | ||
172 | } | ||
173 | |||
169 | /* | 174 | /* |
170 | * RTC specific | 175 | * RTC specific |
171 | */ | 176 | */ |