[PATCH] mips: fix-up schedule_timeout() usage

Use schedule_timeout_interruptible() instead of
set_current_state()/schedule_timeout() to reduce kernel size.  Also, replace
custom timespectojiffies() function with globally availabe
timespec_to_jiffies().

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Nishanth Aravamudan
2005-09-10 00:27:27 -07:00
committed by Linus Torvalds
parent 52e6e63088
commit 310b587e01
2 changed files with 3 additions and 17 deletions

View File

@@ -1032,8 +1032,7 @@ bad:
asmlinkage int irix_sginap(int ticks)
{
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(ticks);
schedule_timeout_interruptible(ticks);
return 0;
}