From: Nishanth Aravamudan Date: Sat, 10 Sep 2005 07:27:25 +0000 (-0700) Subject: [PATCH] alpha: fix-up schedule_timeout() usage X-Git-Tag: v2.6.14-rc1~151 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=20c6abd1fd3a6296282f63fae82e589aa81862ff;p=linux-2.6-omap-h63xx.git [PATCH] alpha: fix-up schedule_timeout() usage Use schedule_timeout_interruptible() instead of set_current_state()/schedule_timeout() to reduce kernel size. Signed-off-by: Nishanth Aravamudan Cc: Richard Henderson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c index 2b034182a0c..0636116210d 100644 --- a/arch/alpha/kernel/osf_sys.c +++ b/arch/alpha/kernel/osf_sys.c @@ -1154,8 +1154,7 @@ osf_usleep_thread(struct timeval32 __user *sleep, struct timeval32 __user *remai ticks = timeval_to_jiffies(&tmp); - current->state = TASK_INTERRUPTIBLE; - ticks = schedule_timeout(ticks); + ticks = schedule_timeout_interruptible(ticks); if (remain) { jiffies_to_timeval(ticks, &tmp);