The get_seconds() cleanup seems to have been completed, now it is time to delete the legacy interface to avoid misuse later.
Unified · Split
| @@ -230,6 +230,5 @@ static inline ktime_t ms_to_ktime(u64 ms) · 229 unmodified lines | |||
| 230 | } | 230 | } |
| 231 | 231 | ||
| 232 | # include <linux/timekeeping.h> | 232 | # include <linux/timekeeping.h> |
| 233 | # include <linux/timekeeping32.h> | ||
| 234 | 233 | ||
| 235 | #endif | 234 | #endif |
| @@ -1,14 +0,0 @@ | |||
| 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 | ||
| @@ -991,8 +991,7 @@ EXPORT_SYMBOL_GPL(ktime_get_seconds); · 990 unmodified lines | |||
| 991 | /** | 991 | /** |
| 992 | * ktime_get_real_seconds - Get the seconds portion of CLOCK_REALTIME | 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 | 994 | * Returns the wall clock seconds since 1970. |
| 995 | * get_seconds() interface which is not y2038 safe on 32bit systems. | ||
| 996 | * | 995 | * |
| 997 | * For 64bit systems the fast access to tk->xtime_sec is preserved. On | 996 | * For 64bit systems the fast access to tk->xtime_sec is preserved. On |
| 998 | * 32bit systems the access must be protected with the sequence | 997 | * 32bit systems the access must be protected with the sequence |