diff options
Diffstat (limited to 'arch/powerpc/kernel/sys_ppc32.c')
-rw-r--r-- | arch/powerpc/kernel/sys_ppc32.c | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/arch/powerpc/kernel/sys_ppc32.c b/arch/powerpc/kernel/sys_ppc32.c index cd75ab2908fa..ec274e688816 100644 --- a/arch/powerpc/kernel/sys_ppc32.c +++ b/arch/powerpc/kernel/sys_ppc32.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include <linux/resource.h> | 24 | #include <linux/resource.h> |
25 | #include <linux/times.h> | 25 | #include <linux/times.h> |
26 | #include <linux/utsname.h> | 26 | #include <linux/utsname.h> |
27 | #include <linux/timex.h> | ||
28 | #include <linux/smp.h> | 27 | #include <linux/smp.h> |
29 | #include <linux/smp_lock.h> | 28 | #include <linux/smp_lock.h> |
30 | #include <linux/sem.h> | 29 | #include <linux/sem.h> |
@@ -161,78 +160,6 @@ asmlinkage long compat_sys_sysfs(u32 option, u32 arg1, u32 arg2) | |||
161 | return sys_sysfs((int)option, arg1, arg2); | 160 | return sys_sysfs((int)option, arg1, arg2); |
162 | } | 161 | } |
163 | 162 | ||
164 | /* Handle adjtimex compatibility. */ | ||
165 | struct timex32 { | ||
166 | u32 modes; | ||
167 | s32 offset, freq, maxerror, esterror; | ||
168 | s32 status, constant, precision, tolerance; | ||
169 | struct compat_timeval time; | ||
170 | s32 tick; | ||
171 | s32 ppsfreq, jitter, shift, stabil; | ||
172 | s32 jitcnt, calcnt, errcnt, stbcnt; | ||
173 | s32 :32; s32 :32; s32 :32; s32 :32; | ||
174 | s32 :32; s32 :32; s32 :32; s32 :32; | ||
175 | s32 :32; s32 :32; s32 :32; s32 :32; | ||
176 | }; | ||
177 | |||
178 | extern int do_adjtimex(struct timex *); | ||
179 | |||
180 | asmlinkage long compat_sys_adjtimex(struct timex32 __user *utp) | ||
181 | { | ||
182 | struct timex txc; | ||
183 | int ret; | ||
184 | |||
185 | memset(&txc, 0, sizeof(struct timex)); | ||
186 | |||
187 | if(get_user(txc.modes, &utp->modes) || | ||
188 | __get_user(txc.offset, &utp->offset) || | ||
189 | __get_user(txc.freq, &utp->freq) || | ||
190 | __get_user(txc.maxerror, &utp->maxerror) || | ||
191 | __get_user(txc.esterror, &utp->esterror) || | ||
192 | __get_user(txc.status, &utp->status) || | ||
193 | __get_user(txc.constant, &utp->constant) || | ||
194 | __get_user(txc.precision, &utp->precision) || | ||
195 | __get_user(txc.tolerance, &utp->tolerance) || | ||
196 | __get_user(txc.time.tv_sec, &utp->time.tv_sec) || | ||
197 | __get_user(txc.time.tv_usec, &utp->time.tv_usec) || | ||
198 | __get_user(txc.tick, &utp->tick) || | ||
199 | __get_user(txc.ppsfreq, &utp->ppsfreq) || | ||
200 | __get_user(txc.jitter, &utp->jitter) || | ||
201 | __get_user(txc.shift, &utp->shift) || | ||
202 | __get_user(txc.stabil, &utp->stabil) || | ||
203 | __get_user(txc.jitcnt, &utp->jitcnt) || | ||
204 | __get_user(txc.calcnt, &utp->calcnt) || | ||
205 | __get_user(txc.errcnt, &utp->errcnt) || | ||
206 | __get_user(txc.stbcnt, &utp->stbcnt)) | ||
207 | return -EFAULT; | ||
208 | |||
209 | ret = do_adjtimex(&txc); | ||
210 | |||
211 | if(put_user(txc.modes, &utp->modes) || | ||
212 | __put_user(txc.offset, &utp->offset) || | ||
213 | __put_user(txc.freq, &utp->freq) || | ||
214 | __put_user(txc.maxerror, &utp->maxerror) || | ||
215 | __put_user(txc.esterror, &utp->esterror) || | ||
216 | __put_user(txc.status, &utp->status) || | ||
217 | __put_user(txc.constant, &utp->constant) || | ||
218 | __put_user(txc.precision, &utp->precision) || | ||
219 | __put_user(txc.tolerance, &utp->tolerance) || | ||
220 | __put_user(txc.time.tv_sec, &utp->time.tv_sec) || | ||
221 | __put_user(txc.time.tv_usec, &utp->time.tv_usec) || | ||
222 | __put_user(txc.tick, &utp->tick) || | ||
223 | __put_user(txc.ppsfreq, &utp->ppsfreq) || | ||
224 | __put_user(txc.jitter, &utp->jitter) || | ||
225 | __put_user(txc.shift, &utp->shift) || | ||
226 | __put_user(txc.stabil, &utp->stabil) || | ||
227 | __put_user(txc.jitcnt, &utp->jitcnt) || | ||
228 | __put_user(txc.calcnt, &utp->calcnt) || | ||
229 | __put_user(txc.errcnt, &utp->errcnt) || | ||
230 | __put_user(txc.stbcnt, &utp->stbcnt)) | ||
231 | ret = -EFAULT; | ||
232 | |||
233 | return ret; | ||
234 | } | ||
235 | |||
236 | asmlinkage long compat_sys_pause(void) | 163 | asmlinkage long compat_sys_pause(void) |
237 | { | 164 | { |
238 | current->state = TASK_INTERRUPTIBLE; | 165 | current->state = TASK_INTERRUPTIBLE; |