[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:
committed by
Linus Torvalds
parent
52e6e63088
commit
310b587e01
@@ -1032,8 +1032,7 @@ bad:
|
||||
|
||||
asmlinkage int irix_sginap(int ticks)
|
||||
{
|
||||
current->state = TASK_INTERRUPTIBLE;
|
||||
schedule_timeout(ticks);
|
||||
schedule_timeout_interruptible(ticks);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user