Skip to content

Commit aba428a

Browse files
brookxu-txKAGA-KOKO
authored andcommitted
timekeeping: Remove unused get_seconds()
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]
1 parent 7c53f6b commit aba428a

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed

include/linux/ktime.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,5 @@ static inline ktime_t ms_to_ktime(u64 ms)
230230
}
231231

232232
# include <linux/timekeeping.h>
233-
# include <linux/timekeeping32.h>
234233

235234
#endif

include/linux/timekeeping32.h

Lines changed: 0 additions & 14 deletions
This file was deleted.

kernel/time/timekeeping.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -991,8 +991,7 @@ EXPORT_SYMBOL_GPL(ktime_get_seconds);
991991
/**
992992
* ktime_get_real_seconds - Get the seconds portion of CLOCK_REALTIME
993993
*
994-
* Returns the wall clock seconds since 1970. This replaces the
995-
* get_seconds() interface which is not y2038 safe on 32bit systems.
994+
* Returns the wall clock seconds since 1970.
996995
*
997996
* For 64bit systems the fast access to tk->xtime_sec is preserved. On
998997
* 32bit systems the access must be protected with the sequence

0 commit comments

Comments
 (0)