From: Christoph Hellwig Date: Mon, 1 Sep 2008 01:23:30 +0000 (+1000) Subject: powerpc: Use sys_pause for 32-bit pause entry point X-Git-Tag: v2.6.28-rc1~569^2~67 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=d6c93adbeb98c56e19f7df37633566b39fbcd4c9;p=linux-2.6-omap-h63xx.git powerpc: Use sys_pause for 32-bit pause entry point sys32_pause is a useless copy of the generic sys_pause. Signed-off-by: Christoph Hellwig Acked-by: Stephen Rothwell Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/include/asm/systbl.h b/arch/powerpc/include/asm/systbl.h index f6cc7a43b4f..803def23665 100644 --- a/arch/powerpc/include/asm/systbl.h +++ b/arch/powerpc/include/asm/systbl.h @@ -32,7 +32,7 @@ COMPAT_SYS_SPU(stime) COMPAT_SYS(ptrace) SYSCALL_SPU(alarm) OLDSYS(fstat) -COMPAT_SYS(pause) +SYSCALL(pause) COMPAT_SYS(utime) SYSCALL(ni_syscall) SYSCALL(ni_syscall) diff --git a/arch/powerpc/kernel/sys_ppc32.c b/arch/powerpc/kernel/sys_ppc32.c index d98634c7606..ff7de7b0797 100644 --- a/arch/powerpc/kernel/sys_ppc32.c +++ b/arch/powerpc/kernel/sys_ppc32.c @@ -107,14 +107,6 @@ asmlinkage long compat_sys_sysfs(u32 option, u32 arg1, u32 arg2) return sys_sysfs((int)option, arg1, arg2); } -asmlinkage long compat_sys_pause(void) -{ - current->state = TASK_INTERRUPTIBLE; - schedule(); - - return -ERESTARTNOHAND; -} - static inline long get_ts32(struct timespec *o, struct compat_timeval __user *i) { long usec;