@@ -11,7 +11,6 @@ extern int timekeeping_suspended;
*/
extern void do_gettimeofday(struct timeval *tv);
extern int do_settimeofday64(const struct timespec64 *ts);
-extern int do_settimeofday(const struct timespec *tv);
extern int do_sys_settimeofday(const struct timespec *tv,
const struct timezone *tz);
@@ -744,22 +744,6 @@ int do_settimeofday64(const struct timespec64 *ts)
EXPORT_SYMBOL(do_settimeofday64);
/**
- * do_settimeofday - Sets the time of day
- * @tv: pointer to the timespec variable containing the new time
- *
- * Sets the time of day to the new time and update NTP and notify hrtimers
- * TODO: [2038 safety] should be replaced by do_settimeofday64().
- */
-int do_settimeofday(const struct timespec *tv)
-{
- struct timespec64 ts64;
-
- ts64 = timespec_to_timespec64(*tv);
- return do_settimeofday64(&ts64);
-}
-EXPORT_SYMBOL(do_settimeofday);
-
-/**
* timekeeping_inject_offset - Adds or subtracts from the current time.
* @tv: pointer to the timespec variable containing the offset
*
Remove do_settimeofday(), since it has no users by now. Signed-off-by: pang.xunlei <pang.xunlei@linaro.org> --- include/linux/timekeeping.h | 1 - kernel/time/timekeeping.c | 16 ---------------- 2 files changed, 17 deletions(-)