From: Nishanth Aravamudan Date: Sat, 10 Sep 2005 07:27:25 +0000 (-0700) Subject: [PATCH] alpha: fix-up schedule_timeout() usage X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=20c6abd1fd3a6296282f63fae82e589aa81862ff;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 2b034182a0ca..0636116210d2 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);