diff options
Diffstat (limited to 'include')
-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 d235e88cfd7c..1f44466c1e9d 100644 --- a/include/linux/jiffies.h +++ b/include/linux/jiffies.h | |||
@@ -294,6 +294,12 @@ extern unsigned long preset_lpj; | |||
294 | */ | 294 | */ |
295 | extern unsigned int jiffies_to_msecs(const unsigned long j); | 295 | extern unsigned int jiffies_to_msecs(const unsigned long j); |
296 | extern unsigned int jiffies_to_usecs(const unsigned long j); | 296 | extern unsigned int jiffies_to_usecs(const unsigned long j); |
297 | |||
298 | static inline u64 jiffies_to_nsecs(const unsigned long j) | ||
299 | { | ||
300 | return (u64)jiffies_to_usecs(j) * NSEC_PER_USEC; | ||
301 | } | ||
302 | |||
297 | extern unsigned long msecs_to_jiffies(const unsigned int m); | 303 | extern unsigned long msecs_to_jiffies(const unsigned int m); |
298 | extern unsigned long usecs_to_jiffies(const unsigned int u); | 304 | extern unsigned long usecs_to_jiffies(const unsigned int u); |
299 | extern unsigned long timespec_to_jiffies(const struct timespec *value); | 305 | extern unsigned long timespec_to_jiffies(const struct timespec *value); |