diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-02-10 07:35:35 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-02-10 07:35:35 -0800 |
| commit | 9bba8dd6763f4584df03f9e41f27adbf66d1416d (patch) | |
| tree | d0b49b1e778379b570c527ae81ec1e09d7910917 /include/linux/jiffies.h | |
| parent | 498b9cb897c57c23d8b1dc313af465edd96c4f27 (diff) | |
[PATCH] uninline get_jiffies_64() for 32-bit architectures
uninline get_jiffies_64() for 32-bit architectures
Diffstat (limited to 'include/linux/jiffies.h')
| -rw-r--r-- | include/linux/jiffies.h | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/include/linux/jiffies.h b/include/linux/jiffies.h index 0a60a4f52077..bb1e0128228c 100644 --- a/include/linux/jiffies.h +++ b/include/linux/jiffies.h @@ -15,24 +15,14 @@ extern u64 jiffies_64; extern unsigned long volatile jiffies; +#if (BITS_PER_LONG < 64) +u64 get_jiffies_64(void); +#else static inline u64 get_jiffies_64(void) { -#if BITS_PER_LONG < 64 - extern seqlock_t xtime_lock; - unsigned long seq; - u64 tmp; - - do { - seq = read_seqbegin(&xtime_lock); - tmp = jiffies_64; - } while (read_seqretry(&xtime_lock, seq)); - - return tmp; -#else return (u64)jiffies; -#endif } - +#endif /* * These inlines deal with timer wrapping correctly. You are |
