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
230230 }
231231
232232 # include <linux/timekeeping.h>
233−# include <linux/timekeeping32.h>
234233
235234 #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−
9−static 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
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

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