Skip to content

Commit

Permalink
timekeeping: remove obsolete time accessors
Browse files Browse the repository at this point in the history
There are no more remaining users of these deprecated wrappers, so
let's remove them before new users have a chance to make it in.

See Documentation/core-api/timekeeping.rst for replacements when
porting old drivers that contain calls to this function.

Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: John Stultz <[email protected]>
  • Loading branch information
arndb committed Dec 18, 2018
1 parent d651d16 commit e4b92b1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
14 changes: 0 additions & 14 deletions include/linux/timekeeping.h
Original file line number Diff line number Diff line change
Expand Up @@ -262,18 +262,4 @@ void read_persistent_wall_and_boot_offset(struct timespec64 *wall_clock,
struct timespec64 *boot_offset);
extern int update_persistent_clock64(struct timespec64 now);

/*
* deprecated aliases, don't use in new code
*/
#define getnstimeofday64(ts) ktime_get_real_ts64(ts)

static inline struct timespec64 current_kernel_time64(void)
{
struct timespec64 ts;

ktime_get_coarse_real_ts64(&ts);

return ts;
}

#endif
9 changes: 0 additions & 9 deletions include/linux/timekeeping32.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@
* over time so we can remove the file here.
*/

static inline void do_gettimeofday(struct timeval *tv)
{
struct timespec64 now;

ktime_get_real_ts64(&now);
tv->tv_sec = now.tv_sec;
tv->tv_usec = now.tv_nsec/1000;
}

static inline unsigned long get_seconds(void)
{
return ktime_get_real_seconds();
Expand Down

0 comments on commit e4b92b1

Please sign in to comment.