diff options
Diffstat (limited to 'kernel/time')
-rw-r--r-- | kernel/time/timekeeping.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index 4ad79f6bdec6..7e8983aecf83 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c | |||
@@ -49,19 +49,12 @@ struct timespec wall_to_monotonic __attribute__ ((aligned (16))); | |||
49 | static unsigned long total_sleep_time; /* seconds */ | 49 | static unsigned long total_sleep_time; /* seconds */ |
50 | EXPORT_SYMBOL(xtime); | 50 | EXPORT_SYMBOL(xtime); |
51 | 51 | ||
52 | |||
53 | #ifdef CONFIG_NO_HZ | ||
54 | static struct timespec xtime_cache __attribute__ ((aligned (16))); | 52 | static struct timespec xtime_cache __attribute__ ((aligned (16))); |
55 | static inline void update_xtime_cache(u64 nsec) | 53 | static inline void update_xtime_cache(u64 nsec) |
56 | { | 54 | { |
57 | xtime_cache = xtime; | 55 | xtime_cache = xtime; |
58 | timespec_add_ns(&xtime_cache, nsec); | 56 | timespec_add_ns(&xtime_cache, nsec); |
59 | } | 57 | } |
60 | #else | ||
61 | #define xtime_cache xtime | ||
62 | /* We do *not* want to evaluate the argument for this case */ | ||
63 | #define update_xtime_cache(n) do { } while (0) | ||
64 | #endif | ||
65 | 58 | ||
66 | static struct clocksource *clock; /* pointer to current clocksource */ | 59 | static struct clocksource *clock; /* pointer to current clocksource */ |
67 | 60 | ||