aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/time
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/time')
-rw-r--r--kernel/time/timekeeping.c7
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)));
49static unsigned long total_sleep_time; /* seconds */ 49static unsigned long total_sleep_time; /* seconds */
50EXPORT_SYMBOL(xtime); 50EXPORT_SYMBOL(xtime);
51 51
52
53#ifdef CONFIG_NO_HZ
54static struct timespec xtime_cache __attribute__ ((aligned (16))); 52static struct timespec xtime_cache __attribute__ ((aligned (16)));
55static inline void update_xtime_cache(u64 nsec) 53static 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
66static struct clocksource *clock; /* pointer to current clocksource */ 59static struct clocksource *clock; /* pointer to current clocksource */
67 60