Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <brookxu@tencent.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/1606816351-26900-1-git-send-email-brookxu@tencent.com

authored by

Chunguang Xu and committed by
Thomas Gleixner
aba428a0 7c53f6b6

+1 -17
-1
include/linux/ktime.h
··· 230 230 } 231 231 232 232 # include <linux/timekeeping.h> 233 - # include <linux/timekeeping32.h> 234 233 235 234 #endif
-14
include/linux/timekeeping32.h
··· 1 - #ifndef _LINUX_TIMEKEEPING32_H 2 - #define _LINUX_TIMEKEEPING32_H 3 - /* 4 - * These interfaces are all based on the old timespec type 5 - * and should get replaced with the timespec64 based versions 6 - * over time so we can remove the file here. 7 - */ 8 - 9 - static inline unsigned long get_seconds(void) 10 - { 11 - return ktime_get_real_seconds(); 12 - } 13 - 14 - #endif
+1 -2
kernel/time/timekeeping.c
··· 991 991 /** 992 992 * ktime_get_real_seconds - Get the seconds portion of CLOCK_REALTIME 993 993 * 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. 996 995 * 997 996 * For 64bit systems the fast access to tk->xtime_sec is preserved. On 998 997 * 32bit systems the access must be protected with the sequence