patch-2.3.99-pre9 linux/arch/mips64/kernel/syscall.c

Next file: linux/arch/mips64/kernel/traps.c
Previous file: linux/arch/mips64/kernel/softfp.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre8/linux/arch/mips64/kernel/syscall.c linux/arch/mips64/kernel/syscall.c
@@ -108,7 +108,6 @@
 	int error;
 	char * filename;
 
-	lock_kernel();
 	filename = getname((char *) (long)regs.regs[4]);
 	error = PTR_ERR(filename);
 	if (IS_ERR(filename))
@@ -118,7 +117,6 @@
 	putname(filename);
 
 out:
-	unlock_kernel();
 	return error;
 }
 
@@ -322,4 +320,11 @@
 asmlinkage void bad_stack(void)
 {
 	do_exit(SIGSEGV);
+}
+
+asmlinkage int sys_pause(void)
+{
+	current->state = TASK_INTERRUPTIBLE;
+	schedule();
+	return -ERESTARTNOHAND;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)