mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
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
This commit is contained in:
parent
7c53f6b671
commit
aba428a0c6
3 changed files with 1 additions and 17 deletions
|
@ -230,6 +230,5 @@ static inline ktime_t ms_to_ktime(u64 ms)
|
||||||
}
|
}
|
||||||
|
|
||||||
# include <linux/timekeeping.h>
|
# include <linux/timekeeping.h>
|
||||||
# include <linux/timekeeping32.h>
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
#ifndef _LINUX_TIMEKEEPING32_H
|
|
||||||
#define _LINUX_TIMEKEEPING32_H
|
|
||||||
/*
|
|
||||||
* These interfaces are all based on the old timespec type
|
|
||||||
* and should get replaced with the timespec64 based versions
|
|
||||||
* over time so we can remove the file here.
|
|
||||||
*/
|
|
||||||
|
|
||||||
static inline unsigned long get_seconds(void)
|
|
||||||
{
|
|
||||||
return ktime_get_real_seconds();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -991,8 +991,7 @@ EXPORT_SYMBOL_GPL(ktime_get_seconds);
|
||||||
/**
|
/**
|
||||||
* ktime_get_real_seconds - Get the seconds portion of CLOCK_REALTIME
|
* ktime_get_real_seconds - Get the seconds portion of CLOCK_REALTIME
|
||||||
*
|
*
|
||||||
* Returns the wall clock seconds since 1970. This replaces the
|
* Returns the wall clock seconds since 1970.
|
||||||
* get_seconds() interface which is not y2038 safe on 32bit systems.
|
|
||||||
*
|
*
|
||||||
* For 64bit systems the fast access to tk->xtime_sec is preserved. On
|
* For 64bit systems the fast access to tk->xtime_sec is preserved. On
|
||||||
* 32bit systems the access must be protected with the sequence
|
* 32bit systems the access must be protected with the sequence
|
||||||
|
|
Loading…
Add table
Reference in a new issue