Commit 1626bd5b authored by David Mosberger's avatar David Mosberger

ia64: Initial sync with 2.5.72.

parent 2b5f799d
...@@ -63,6 +63,7 @@ ...@@ -63,6 +63,7 @@
#include <linux/if_tun.h> #include <linux/if_tun.h>
#include <linux/dirent.h> #include <linux/dirent.h>
#include <linux/ctype.h> #include <linux/ctype.h>
#include <linux/ncp_fs.h>
#include <net/bluetooth/bluetooth.h> #include <net/bluetooth/bluetooth.h>
#include <net/bluetooth/rfcomm.h> #include <net/bluetooth/rfcomm.h>
......
...@@ -659,7 +659,6 @@ sys32_alarm (unsigned int seconds) ...@@ -659,7 +659,6 @@ sys32_alarm (unsigned int seconds)
sorts of things, like timeval and itimerval. */ sorts of things, like timeval and itimerval. */
extern struct timezone sys_tz; extern struct timezone sys_tz;
extern int do_sys_settimeofday (struct timeval *tv, struct timezone *tz);
asmlinkage long asmlinkage long
sys32_gettimeofday (struct compat_timeval *tv, struct timezone *tz) sys32_gettimeofday (struct compat_timeval *tv, struct timezone *tz)
...@@ -681,18 +680,21 @@ asmlinkage long ...@@ -681,18 +680,21 @@ asmlinkage long
sys32_settimeofday (struct compat_timeval *tv, struct timezone *tz) sys32_settimeofday (struct compat_timeval *tv, struct timezone *tz)
{ {
struct timeval ktv; struct timeval ktv;
struct timespec kts;
struct timezone ktz; struct timezone ktz;
if (tv) { if (tv) {
if (get_tv32(&ktv, tv)) if (get_tv32(&ktv, tv))
return -EFAULT; return -EFAULT;
kts.tv_sec = ktv.tv_sec;
kts.tv_nsec = ktv.tv_usec * 1000;
} }
if (tz) { if (tz) {
if (copy_from_user(&ktz, tz, sizeof(ktz))) if (copy_from_user(&ktz, tz, sizeof(ktz)))
return -EFAULT; return -EFAULT;
} }
return do_sys_settimeofday(tv ? &ktv : NULL, tz ? &ktz : NULL); return do_sys_settimeofday(tv ? &kts : NULL, tz ? &ktz : NULL);
} }
struct getdents32_callback { struct getdents32_callback {
......
...@@ -160,9 +160,6 @@ do_gettimeofday (struct timeval *tv) ...@@ -160,9 +160,6 @@ do_gettimeofday (struct timeval *tv)
{ {
unsigned long seq, nsec, usec, sec, old, offset; unsigned long seq, nsec, usec, sec, old, offset;
if ((unsigned long)tv->tv_nsec >= NSEC_PER_SEC)
return -EINVAL;
while (1) { while (1) {
seq = read_seqbegin(&xtime_lock); seq = read_seqbegin(&xtime_lock);
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment