Skip to content

Commit

Permalink
timekeeping: Remove unused get_seconds()
Browse files Browse the repository at this point in the history
The get_seconds() cleanup seems to have been completed, now it is
time to delete the legacy interface to avoid misuse later.

Signed-off-by: Chunguang Xu <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
brookxu-tx authored and KAGA-KOKO committed Jan 12, 2021
1 parent 7c53f6b commit aba428a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
1 change: 0 additions & 1 deletion include/linux/ktime.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,5 @@ static inline ktime_t ms_to_ktime(u64 ms)
}

# include <linux/timekeeping.h>
# include <linux/timekeeping32.h>

#endif
14 changes: 0 additions & 14 deletions include/linux/timekeeping32.h

This file was deleted.

3 changes: 1 addition & 2 deletions kernel/time/timekeeping.c
Original file line number Diff line number Diff line change
Expand Up @@ -991,8 +991,7 @@ EXPORT_SYMBOL_GPL(ktime_get_seconds);
/**
* ktime_get_real_seconds - Get the seconds portion of CLOCK_REALTIME
*
* Returns the wall clock seconds since 1970. This replaces the
* get_seconds() interface which is not y2038 safe on 32bit systems.
* Returns the wall clock seconds since 1970.
*
* For 64bit systems the fast access to tk->xtime_sec is preserved. On
* 32bit systems the access must be protected with the sequence
Expand Down

0 comments on commit aba428a

Please sign in to comment.