]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/jiffies.h
libata: correct handling of TSS DVD
[linux-2.6-omap-h63xx.git] / include / linux / jiffies.h
index d7a5e034c3a219197007df6923e9a79507762022..8b080024bbc1fe649770c44b8df540da8ec87d39 100644 (file)
@@ -109,6 +109,10 @@ static inline u64 get_jiffies_64(void)
         ((long)(a) - (long)(b) >= 0))
 #define time_before_eq(a,b)    time_after_eq(b,a)
 
+#define time_in_range(a,b,c) \
+       (time_after_eq(a,b) && \
+        time_before_eq(a,c))
+
 /* Same as above, but does so with platform independent 64bit types.
  * These must be used when utilizing jiffies_64 (i.e. return value of
  * get_jiffies_64() */
@@ -144,6 +148,8 @@ static inline u64 get_jiffies_64(void)
  */
 #define MAX_JIFFY_OFFSET ((LONG_MAX >> 1)-1)
 
+extern unsigned long preset_lpj;
+
 /*
  * We want to do realistic conversions of time so we need to use the same
  * values the update wall clock code uses as the jiffies size.  This value