From a7f4071ab77d0f48c20b16020eaaff564a376655 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 18 Apr 2000 23:26:05 +0000 Subject: Pause(2) fix for 2.3. --- arch/mips/kernel/sysmips.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'arch/mips/kernel/sysmips.c') diff --git a/arch/mips/kernel/sysmips.c b/arch/mips/kernel/sysmips.c index a854c915f..1602013ec 100644 --- a/arch/mips/kernel/sysmips.c +++ b/arch/mips/kernel/sysmips.c @@ -124,3 +124,10 @@ sys_cachectl(char *addr, int nbytes, int op) { return -ENOSYS; } + +asmlinkage int sys_pause(void) +{ + current->state = TASK_INTERRUPTIBLE; + schedule(); + return -ERESTARTNOHAND; +} -- cgit v1.2.3