|
@@ -294,6 +294,12 @@ extern unsigned long preset_lpj;
|
|
*/
|
|
*/
|
|
extern unsigned int jiffies_to_msecs(const unsigned long j);
|
|
extern unsigned int jiffies_to_msecs(const unsigned long j);
|
|
extern unsigned int jiffies_to_usecs(const unsigned long j);
|
|
extern unsigned int jiffies_to_usecs(const unsigned long j);
|
|
|
|
+
|
|
|
|
+static inline u64 jiffies_to_nsecs(const unsigned long j)
|
|
|
|
+{
|
|
|
|
+ return (u64)jiffies_to_usecs(j) * NSEC_PER_USEC;
|
|
|
|
+}
|
|
|
|
+
|
|
extern unsigned long msecs_to_jiffies(const unsigned int m);
|
|
extern unsigned long msecs_to_jiffies(const unsigned int m);
|
|
extern unsigned long usecs_to_jiffies(const unsigned int u);
|
|
extern unsigned long usecs_to_jiffies(const unsigned int u);
|
|
extern unsigned long timespec_to_jiffies(const struct timespec *value);
|
|
extern unsigned long timespec_to_jiffies(const struct timespec *value);
|