aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorBaolin Wang <baolin.wang@linaro.org>2018-04-13 01:27:58 -0400
committerThomas Gleixner <tglx@linutronix.de>2018-04-17 11:18:05 -0400
commite142aa09ed88be98395dde7acb96fb2263566b68 (patch)
tree3d37c5d2dbddf5c78a33b5feb1702f5e432c9cb4 /kernel
parentf0ae6a0321222864ed8675a924cc8ee2cb042c31 (diff)
timekeeping: Remove __current_kernel_time()
The __current_kernel_time() function based on 'struct timespec' is no longer recommended for new code, and the only user of this function has been replaced by commit 6909e29fdefb ("kdb: use __ktime_get_real_seconds instead of __current_kernel_time"). Remove the obsolete interface. Signed-off-by: Baolin Wang <baolin.wang@linaro.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: arnd@arndb.de Cc: sboyd@kernel.org Cc: broonie@kernel.org Cc: john.stultz@linaro.org Link: https://lkml.kernel.org/r/1a9dbea7ee2cda7efe9ed330874075cf17fdbff6.1523596316.git.baolin.wang@linaro.org
Diffstat (limited to 'kernel')
-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 ca90219a1e73..dcf7f20fcd12 100644
--- a/kernel/time/timekeeping.c
+++ b/kernel/time/timekeeping.c
@@ -2139,13 +2139,6 @@ unsigned long get_seconds(void)
2139} 2139}
2140EXPORT_SYMBOL(get_seconds); 2140EXPORT_SYMBOL(get_seconds);
2141 2141
2142struct timespec __current_kernel_time(void)
2143{
2144 struct timekeeper *tk = &tk_core.timekeeper;
2145
2146 return timespec64_to_timespec(tk_xtime(tk));
2147}
2148
2149struct timespec64 current_kernel_time64(void) 2142struct timespec64 current_kernel_time64(void)
2150{ 2143{
2151 struct timekeeper *tk = &tk_core.timekeeper; 2144 struct timekeeper *tk = &tk_core.timekeeper;