[PATCH] powerpc: use sys_pause for 32bit pause entry point
Christoph Hellwig
hch at lst.de
Mon Sep 1 11:23:30 EST 2008
sys32_pause is a useless copy of the generic sys_pause.
Signed-off-by: Christoph Hellwig <hch at lst.de>
Index: linux-2.6/arch/powerpc/include/asm/systbl.h
===================================================================
--- linux-2.6.orig/arch/powerpc/include/asm/systbl.h 2008-08-22 12:47:08.000000000 -0300
+++ linux-2.6/arch/powerpc/include/asm/systbl.h 2008-08-22 12:47:35.000000000 -0300
@@ -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)
Index: linux-2.6/arch/powerpc/kernel/sys_ppc32.c
===================================================================
--- linux-2.6.orig/arch/powerpc/kernel/sys_ppc32.c 2008-08-22 12:47:41.000000000 -0300
+++ linux-2.6/arch/powerpc/kernel/sys_ppc32.c 2008-08-22 12:47:51.000000000 -0300
@@ -107,14 +107,6 @@ asmlinkage long compat_sys_sysfs(u32 opt
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;
More information about the Linuxppc-dev
mailing list