diff options
author | Torben Hohn <torbenh@gmx.de> | 2011-01-27 09:59:00 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-01-31 08:55:42 -0500 |
commit | fbad1ea94159a71bc0f68b00e57ae803606af9fb (patch) | |
tree | bcd350cc5faa6d3607d2c279d66fa58e96c53425 /kernel/time.c | |
parent | 871cf1e5f2a17702f58539a3af8b18fc8666ad4c (diff) |
time: Move get_jiffies_64 to kernel/time/jiffies.c
Move the jiffies access functions to the jiffies clocksource code.
[ tglx: Add missing include ]
Signed-off-by: Torben Hohn <torbenh@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: johnstul@us.ibm.com
Cc: yong.zhang0@gmail.com
Cc: hch@infradead.org
LKML-Reference: <20110127145900.23248.73352.stgit@localhost>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/time.c')
-rw-r--r-- | kernel/time.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/kernel/time.c b/kernel/time.c index 32174359576f..a31b51220ac6 100644 --- a/kernel/time.c +++ b/kernel/time.c | |||
@@ -674,23 +674,6 @@ unsigned long nsecs_to_jiffies(u64 n) | |||
674 | #endif | 674 | #endif |
675 | } | 675 | } |
676 | 676 | ||
677 | #if (BITS_PER_LONG < 64) | ||
678 | u64 get_jiffies_64(void) | ||
679 | { | ||
680 | unsigned long seq; | ||
681 | u64 ret; | ||
682 | |||
683 | do { | ||
684 | seq = read_seqbegin(&xtime_lock); | ||
685 | ret = jiffies_64; | ||
686 | } while (read_seqretry(&xtime_lock, seq)); | ||
687 | return ret; | ||
688 | } | ||
689 | EXPORT_SYMBOL(get_jiffies_64); | ||
690 | #endif | ||
691 | |||
692 | EXPORT_SYMBOL(jiffies); | ||
693 | |||
694 | /* | 677 | /* |
695 | * Add two timespec values and do a safety check for overflow. | 678 | * Add two timespec values and do a safety check for overflow. |
696 | * It's assumed that both values are valid (>= 0) | 679 | * It's assumed that both values are valid (>= 0) |