aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/hrtimer.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/hrtimer.c')
-rw-r--r--kernel/hrtimer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c
index 9002958a96e7..829e0664b72e 100644
--- a/kernel/hrtimer.c
+++ b/kernel/hrtimer.c
@@ -48,6 +48,7 @@
48 48
49#include <asm/uaccess.h> 49#include <asm/uaccess.h>
50 50
51#ifndef CONFIG_GENERIC_TIME
51/** 52/**
52 * ktime_get - get the monotonic time in ktime_t format 53 * ktime_get - get the monotonic time in ktime_t format
53 * 54 *
@@ -62,6 +63,7 @@ ktime_t ktime_get(void)
62 return timespec_to_ktime(now); 63 return timespec_to_ktime(now);
63} 64}
64EXPORT_SYMBOL_GPL(ktime_get); 65EXPORT_SYMBOL_GPL(ktime_get);
66#endif
65 67
66/** 68/**
67 * ktime_get_real - get the real (wall-) time in ktime_t format 69 * ktime_get_real - get the real (wall-) time in ktime_t format
@@ -106,6 +108,7 @@ DEFINE_PER_CPU(struct hrtimer_cpu_base, hrtimer_bases) =
106 } 108 }
107}; 109};
108 110
111#ifndef CONFIG_GENERIC_TIME
109/** 112/**
110 * ktime_get_ts - get the monotonic clock in timespec format 113 * ktime_get_ts - get the monotonic clock in timespec format
111 * @ts: pointer to timespec variable 114 * @ts: pointer to timespec variable
@@ -130,6 +133,7 @@ void ktime_get_ts(struct timespec *ts)
130 ts->tv_nsec + tomono.tv_nsec); 133 ts->tv_nsec + tomono.tv_nsec);
131} 134}
132EXPORT_SYMBOL_GPL(ktime_get_ts); 135EXPORT_SYMBOL_GPL(ktime_get_ts);
136#endif
133 137
134/* 138/*
135 * Get the coarse grained time at the softirq based on xtime and 139 * Get the coarse grained time at the softirq based on xtime and