|
@@ -63,7 +63,7 @@ EXPORT_SYMBOL(sys_tz);
|
|
|
*/
|
|
|
SYSCALL_DEFINE1(time, time_t __user *, tloc)
|
|
|
{
|
|
|
- time_t i = get_seconds();
|
|
|
+ time_t i = (time_t)ktime_get_real_seconds();
|
|
|
|
|
|
if (tloc) {
|
|
|
if (put_user(i,tloc))
|
|
@@ -106,11 +106,9 @@ SYSCALL_DEFINE1(stime, time_t __user *, tptr)
|
|
|
/* compat_time_t is a 32 bit "long" and needs to get converted. */
|
|
|
COMPAT_SYSCALL_DEFINE1(time, compat_time_t __user *, tloc)
|
|
|
{
|
|
|
- struct timeval tv;
|
|
|
compat_time_t i;
|
|
|
|
|
|
- do_gettimeofday(&tv);
|
|
|
- i = tv.tv_sec;
|
|
|
+ i = (compat_time_t)ktime_get_real_seconds();
|
|
|
|
|
|
if (tloc) {
|
|
|
if (put_user(i,tloc))
|