diff options
Diffstat (limited to 'arch/parisc/kernel/sys_parisc32.c')
-rw-r--r-- | arch/parisc/kernel/sys_parisc32.c | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/arch/parisc/kernel/sys_parisc32.c b/arch/parisc/kernel/sys_parisc32.c index 613569018410..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,63 +566,6 @@ asmlinkage int sys32_sendfile64(int out_fd, int in_fd, compat_loff_t __user *off | |||
567 | } | 566 | } |
568 | 567 | ||
569 | 568 | ||
570 | struct timex32 { | ||
571 | unsigned int modes; /* mode selector */ | ||
572 | int offset; /* time offset (usec) */ | ||
573 | int freq; /* frequency offset (scaled ppm) */ | ||
574 | int maxerror; /* maximum error (usec) */ | ||
575 | int esterror; /* estimated error (usec) */ | ||
576 | int status; /* clock command/status */ | ||
577 | int constant; /* pll time constant */ | ||
578 | int precision; /* clock precision (usec) (read only) */ | ||
579 | int tolerance; /* clock frequency tolerance (ppm) | ||
580 | * (read only) | ||
581 | */ | ||
582 | struct compat_timeval time; /* (read only) */ | ||
583 | int tick; /* (modified) usecs between clock ticks */ | ||
584 | |||
585 | int ppsfreq; /* pps frequency (scaled ppm) (ro) */ | ||
586 | int jitter; /* pps jitter (us) (ro) */ | ||
587 | int shift; /* interval duration (s) (shift) (ro) */ | ||
588 | int stabil; /* pps stability (scaled ppm) (ro) */ | ||
589 | int jitcnt; /* jitter limit exceeded (ro) */ | ||
590 | int calcnt; /* calibration intervals (ro) */ | ||
591 | int errcnt; /* calibration errors (ro) */ | ||
592 | int stbcnt; /* stability limit exceeded (ro) */ | ||
593 | |||
594 | int :32; int :32; int :32; int :32; | ||
595 | int :32; int :32; int :32; int :32; | ||
596 | int :32; int :32; int :32; int :32; | ||
597 | }; | ||
598 | |||
599 | asmlinkage long sys32_adjtimex(struct timex32 __user *txc_p32) | ||
600 | { | ||
601 | struct timex txc; | ||
602 | struct timex32 t32; | ||
603 | int ret; | ||
604 | extern int do_adjtimex(struct timex *txc); | ||
605 | |||
606 | if(copy_from_user(&t32, txc_p32, sizeof(struct timex32))) | ||
607 | return -EFAULT; | ||
608 | #undef CP | ||
609 | #define CP(x) txc.x = t32.x | ||
610 | CP(modes); CP(offset); CP(freq); CP(maxerror); CP(esterror); | ||
611 | CP(status); CP(constant); CP(precision); CP(tolerance); | ||
612 | CP(time.tv_sec); CP(time.tv_usec); CP(tick); CP(ppsfreq); CP(jitter); | ||
613 | CP(shift); CP(stabil); CP(jitcnt); CP(calcnt); CP(errcnt); | ||
614 | CP(stbcnt); | ||
615 | ret = do_adjtimex(&txc); | ||
616 | #undef CP | ||
617 | #define CP(x) t32.x = txc.x | ||
618 | CP(modes); CP(offset); CP(freq); CP(maxerror); CP(esterror); | ||
619 | CP(status); CP(constant); CP(precision); CP(tolerance); | ||
620 | CP(time.tv_sec); CP(time.tv_usec); CP(tick); CP(ppsfreq); CP(jitter); | ||
621 | CP(shift); CP(stabil); CP(jitcnt); CP(calcnt); CP(errcnt); | ||
622 | CP(stbcnt); | ||
623 | return copy_to_user(txc_p32, &t32, sizeof(struct timex32)) ? -EFAULT : ret; | ||
624 | } | ||
625 | |||
626 | |||
627 | struct sysinfo32 { | 569 | struct sysinfo32 { |
628 | s32 uptime; | 570 | s32 uptime; |
629 | u32 loads[3]; | 571 | u32 loads[3]; |