mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[PATCH] kernel: fix-up schedule_timeout() usage
Use schedule_timeout_{,un}interruptible() instead of
set_current_state()/schedule_timeout() to reduce kernel size.
Signed-off-by: Nishanth Aravamudan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
041e0e3b19
commit
75bcc8c5e1
3 changed files with 10 additions and 20 deletions
|
|
@ -2221,8 +2221,7 @@ sys_rt_sigtimedwait(const sigset_t __user *uthese,
|
|||
recalc_sigpending();
|
||||
spin_unlock_irq(¤t->sighand->siglock);
|
||||
|
||||
current->state = TASK_INTERRUPTIBLE;
|
||||
timeout = schedule_timeout(timeout);
|
||||
timeout = schedule_timeout_interruptible(timeout);
|
||||
|
||||
try_to_freeze();
|
||||
spin_lock_irq(¤t->sighand->siglock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue