compat: generic compat get/settimeofday
Nothing arch specific in get/settimeofday. The details of the timeval conversion varied a little from arch to arch, but all with the same results. Also add an extern declaration for sys_tz to linux/time.h because externs in .c files are fowned upon. I'll kill the externs in various other files in a sparate patch. [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: David S. Miller <davem@davemloft.net> [ sparc bits ] Cc: "Luck, Tony" <tony.luck@intel.com> Cc: Ralf Baechle <ralf@linux-mips.org> Acked-by: Kyle McMartin <kyle@mcmartin.ca> Cc: Matthew Wilcox <matthew@wil.cx> Cc: Grant Grundler <grundler@parisc-linux.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: Heiko Carstens <heiko.carstens@de.ibm.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
f7a5000f7a
commit
b418da16dd
@ -332,17 +332,17 @@ compat_sys_getrusage_wrapper:
|
||||
llgtr %r3,%r3 # struct rusage_emu31 *
|
||||
jg compat_sys_getrusage # branch to system call
|
||||
|
||||
.globl sys32_gettimeofday_wrapper
|
||||
sys32_gettimeofday_wrapper:
|
||||
.globl compat_sys_gettimeofday_wrapper
|
||||
compat_sys_gettimeofday_wrapper:
|
||||
llgtr %r2,%r2 # struct timeval_emu31 *
|
||||
llgtr %r3,%r3 # struct timezone *
|
||||
jg sys32_gettimeofday # branch to system call
|
||||
jg compat_sys_gettimeofday # branch to system call
|
||||
|
||||
.globl sys32_settimeofday_wrapper
|
||||
sys32_settimeofday_wrapper:
|
||||
.globl compat_sys_settimeofday_wrapper
|
||||
compat_sys_settimeofday_wrapper:
|
||||
llgtr %r2,%r2 # struct timeval_emu31 *
|
||||
llgtr %r3,%r3 # struct timezone *
|
||||
jg sys32_settimeofday # branch to system call
|
||||
jg compat_sys_settimeofday # branch to system call
|
||||
|
||||
.globl sys32_getgroups16_wrapper
|
||||
sys32_getgroups16_wrapper:
|
||||
|
Reference in New Issue
Block a user