]> git.karo-electronics.de Git - karo-tx-linux.git/commit
compat: generic compat_sys_sched_rr_get_interval() implementation
authorCatalin Marinas <catalin.marinas@arm.com>
Thu, 25 Oct 2012 01:15:06 +0000 (12:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 31 Oct 2012 05:49:54 +0000 (16:49 +1100)
commit964a7fef5b09d93db80f74f2eacf34001d47b193
treec7e62b7ff5aba829e68e9c2a0732f2370460583a
parent8b743af9630950b07086bb7fc2299fbceaf9ccf0
compat: generic compat_sys_sched_rr_get_interval() implementation

This function is used by sparc, powerpc tile and arm64 for compat support.
 The patch adds a generic implementation with a wrapper for PowerPC to do
the u32->int sign extension.

The reason for a single patch covering powerpc, tile, sparc and arm64 is
to keep it bisectable, otherwise kernel building may fail with mismatched
function declarations.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Chris Metcalf <cmetcalf@tilera.com> [for tile]
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
12 files changed:
arch/arm64/include/asm/unistd.h
arch/arm64/kernel/sys_compat.c
arch/powerpc/include/asm/systbl.h
arch/powerpc/include/asm/unistd.h
arch/powerpc/kernel/sys_ppc32.c
arch/sparc/include/asm/unistd.h
arch/sparc/kernel/sys_sparc32.c
arch/tile/include/asm/compat.h
arch/tile/include/asm/unistd.h
arch/tile/kernel/compat.c
include/linux/compat.h
kernel/compat.c