diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2006-03-26 04:37:27 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-26 11:56:57 -0500 |
commit | 88959ea968709c35e8b979ac9f5a398fa748091a (patch) | |
tree | 7d93892ec8d7b15cd810e4bcb75715c797e01ab3 /arch/powerpc/kernel/sys_ppc32.c | |
parent | eb76b3fda1f7c2aa2d1523b36835048a15e5e5d2 (diff) |
[PATCH] create struct compat_timex and use it everywhere
We had a copy of the compatibility version of struct timex in each 64 bit
architecture. This patch just creates a global one and replaces all the
usages of the old ones.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Arnd Bergmann <arnd@arndb.de>
Acked-by: Kyle McMartin <kyle@parisc-linux.org>
Acked-by: Tony Luck <tony.luck@intel.com>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/powerpc/kernel/sys_ppc32.c')
-rw-r--r-- | arch/powerpc/kernel/sys_ppc32.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/arch/powerpc/kernel/sys_ppc32.c b/arch/powerpc/kernel/sys_ppc32.c index cd75ab2908fa..d9867f583c68 100644 --- a/arch/powerpc/kernel/sys_ppc32.c +++ b/arch/powerpc/kernel/sys_ppc32.c | |||
@@ -162,22 +162,9 @@ asmlinkage long compat_sys_sysfs(u32 option, u32 arg1, u32 arg2) | |||
162 | } | 162 | } |
163 | 163 | ||
164 | /* Handle adjtimex compatibility. */ | 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 *); | 165 | extern int do_adjtimex(struct timex *); |
179 | 166 | ||
180 | asmlinkage long compat_sys_adjtimex(struct timex32 __user *utp) | 167 | asmlinkage long compat_sys_adjtimex(struct compat_timex __user *utp) |
181 | { | 168 | { |
182 | struct timex txc; | 169 | struct timex txc; |
183 | int ret; | 170 | int ret; |