diff options
Diffstat (limited to 'include/linux/jiffies.h')
-rw-r--r-- | include/linux/jiffies.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/jiffies.h b/include/linux/jiffies.h index 265e2c3cbd1c..aded9b1ac5ca 100644 --- a/include/linux/jiffies.h +++ b/include/linux/jiffies.h | |||
@@ -303,7 +303,13 @@ extern void jiffies_to_timespec(const unsigned long jiffies, | |||
303 | extern unsigned long timeval_to_jiffies(const struct timeval *value); | 303 | extern unsigned long timeval_to_jiffies(const struct timeval *value); |
304 | extern void jiffies_to_timeval(const unsigned long jiffies, | 304 | extern void jiffies_to_timeval(const unsigned long jiffies, |
305 | struct timeval *value); | 305 | struct timeval *value); |
306 | |||
306 | extern clock_t jiffies_to_clock_t(unsigned long x); | 307 | extern clock_t jiffies_to_clock_t(unsigned long x); |
308 | static inline clock_t jiffies_delta_to_clock_t(long delta) | ||
309 | { | ||
310 | return jiffies_to_clock_t(max(0L, delta)); | ||
311 | } | ||
312 | |||
307 | extern unsigned long clock_t_to_jiffies(unsigned long x); | 313 | extern unsigned long clock_t_to_jiffies(unsigned long x); |
308 | extern u64 jiffies_64_to_clock_t(u64 x); | 314 | extern u64 jiffies_64_to_clock_t(u64 x); |
309 | extern u64 nsec_to_clock_t(u64 x); | 315 | extern u64 nsec_to_clock_t(u64 x); |