History

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.

Chunguang Xu committed 5 years ago

Commit aba428a1 parent 7c53f6b3 files · +1 −17Browse files

Unified · Split

3 files
  1. include/linux/ktime.h +0 −1
  2. include/linux/timekeeping32.h +0 −14
  3. kernel/time/timekeeping.c +1 −2
include/linux/ktime.h+0−1
@@ -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#endif234#endif
include/linux/timekeeping32.h+0−14
@@ -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
9static inline unsigned long get_seconds(void)
10{
11 return ktime_get_real_seconds();
12}
13
14#endif
kernel/time/timekeeping.c+1−2
@@ -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_REALTIME992 * ktime_get_real_seconds - Get the seconds portion of CLOCK_REALTIME
993 *993 *
994 * Returns the wall clock seconds since 1970. This replaces the994 * 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. On996 * For 64bit systems the fast access to tk->xtime_sec is preserved. On
998 * 32bit systems the access must be protected with the sequence997 * 32bit systems the access must be protected with the sequence

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t