aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/kernel/sys_parisc32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/parisc/kernel/sys_parisc32.c')
-rw-r--r--arch/parisc/kernel/sys_parisc32.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/arch/parisc/kernel/sys_parisc32.c b/arch/parisc/kernel/sys_parisc32.c
index ca1d8dbbadf3..d286f68a3d3a 100644
--- a/arch/parisc/kernel/sys_parisc32.c
+++ b/arch/parisc/kernel/sys_parisc32.c
@@ -21,7 +21,6 @@
21#include <linux/times.h> 21#include <linux/times.h>
22#include <linux/utsname.h> 22#include <linux/utsname.h>
23#include <linux/time.h> 23#include <linux/time.h>
24#include <linux/timex.h>
25#include <linux/smp.h> 24#include <linux/smp.h>
26#include <linux/smp_lock.h> 25#include <linux/smp_lock.h>
27#include <linux/sem.h> 26#include <linux/sem.h>
@@ -567,34 +566,6 @@ asmlinkage int sys32_sendfile64(int out_fd, int in_fd, compat_loff_t __user *off
567} 566}
568 567
569 568
570asmlinkage long sys32_adjtimex(struct compat_timex __user *txc_p32)
571{
572 struct timex txc;
573 struct compat_timex t32;
574 int ret;
575 extern int do_adjtimex(struct timex *txc);
576
577 if(copy_from_user(&t32, txc_p32, sizeof(struct compat_timex)))
578 return -EFAULT;
579#undef CP
580#define CP(x) txc.x = t32.x
581 CP(modes); CP(offset); CP(freq); CP(maxerror); CP(esterror);
582 CP(status); CP(constant); CP(precision); CP(tolerance);
583 CP(time.tv_sec); CP(time.tv_usec); CP(tick); CP(ppsfreq); CP(jitter);
584 CP(shift); CP(stabil); CP(jitcnt); CP(calcnt); CP(errcnt);
585 CP(stbcnt);
586 ret = do_adjtimex(&txc);
587#undef CP
588#define CP(x) t32.x = txc.x
589 CP(modes); CP(offset); CP(freq); CP(maxerror); CP(esterror);
590 CP(status); CP(constant); CP(precision); CP(tolerance);
591 CP(time.tv_sec); CP(time.tv_usec); CP(tick); CP(ppsfreq); CP(jitter);
592 CP(shift); CP(stabil); CP(jitcnt); CP(calcnt); CP(errcnt);
593 CP(stbcnt);
594 return copy_to_user(txc_p32, &t32, sizeof(struct compat_timex)) ? -EFAULT : ret;
595}
596
597
598struct sysinfo32 { 569struct sysinfo32 {
599 s32 uptime; 570 s32 uptime;
600 u32 loads[3]; 571 u32 loads[3];