patch-2.1.127 linux/arch/mips/kernel/sysirix.c
Next file: linux/arch/mips/sgi/kernel/indy_sc.c
Previous file: linux/arch/mips/kernel/irixsig.c
Back to the patch index
Back to the overall index
-  Lines: 16
-  Date:
Thu Nov  5 09:58:29 1998
-  Orig file: 
v2.1.126/linux/arch/mips/kernel/sysirix.c
-  Orig date: 
Fri Oct 23 22:01:19 1998
diff -u --recursive --new-file v2.1.126/linux/arch/mips/kernel/sysirix.c linux/arch/mips/kernel/sysirix.c
@@ -1081,13 +1081,8 @@
 
 asmlinkage int irix_sginap(int ticks)
 {
-	lock_kernel();
-	if(ticks) {
-		current->timeout = ticks + jiffies;
-		current->state = TASK_INTERRUPTIBLE;
-	}
-	schedule();
-	unlock_kernel();
+	current->state = TASK_INTERRUPTIBLE;
+	schedule_timeout(ticks);
 	return 0;
 }
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov