Skip to content

Commit

Permalink
timekeeping: Remove __current_kernel_time()
Browse files Browse the repository at this point in the history
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 6909e29 ("kdb: use __ktime_get_real_seconds
instead of __current_kernel_time").

Remove the obsolete interface.

Signed-off-by: Baolin Wang <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: https://lkml.kernel.org/r/1a9dbea7ee2cda7efe9ed330874075cf17fdbff6.1523596316.git.baolin.wang@linaro.org
  • Loading branch information
wangbaolin719 authored and KAGA-KOKO committed Apr 17, 2018
1 parent f0ae6a0 commit e142aa0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions include/linux/timekeeping32.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
extern void do_gettimeofday(struct timeval *tv);
unsigned long get_seconds(void);

/* does not take xtime_lock */
struct timespec __current_kernel_time(void);

static inline struct timespec current_kernel_time(void)
{
struct timespec64 now = current_kernel_time64();
Expand Down
7 changes: 0 additions & 7 deletions kernel/time/timekeeping.c
Original file line number Diff line number Diff line change
Expand Up @@ -2139,13 +2139,6 @@ unsigned long get_seconds(void)
}
EXPORT_SYMBOL(get_seconds);

struct timespec __current_kernel_time(void)
{
struct timekeeper *tk = &tk_core.timekeeper;

return timespec64_to_timespec(tk_xtime(tk));
}

struct timespec64 current_kernel_time64(void)
{
struct timekeeper *tk = &tk_core.timekeeper;
Expand Down

0 comments on commit e142aa0

Please sign in to comment.